Selection Mini Tool Bar show by Code

1 Answer 18 Views
RichTextBox
Andi
Top achievements
Rank 1
Andi asked on 29 Apr 2021, 07:29 AM

Hi there,

I select the complete text of my RadRichTextBox by code and also want to show the Selection Mini Tool Bar also by code?
Any ideas how to do so?

Actual this only shows up when the selection was done by mouse.

Thank you, Andi

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 29 Apr 2021, 12:11 PM

Hi Andi,

You can use the following methods to achieve this: 

private void Button_Click(object sender, RoutedEventArgs e)
{
    this.radRichTextBox.Document.Selection.SelectAll();
    radRichTextBox.Focus();
    this.radRichTextBox.SelectionMiniToolBar.Show(new Point(100,100),this.radRichTextBox);
}

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
RichTextBox
Asked by
Andi
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or