Back to Devexpress

RichEditControl.SelectAll() Method

windowsforms-devexpress-dot-xtrarichedit-dot-richeditcontrol-09d0851c.md

latest2.2 KB
Original Source

RichEditControl.SelectAll() Method

Selects the entire contents of the RichEditControl.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.XtraRichEdit.v25.2.dll

NuGet Package : DevExpress.Win.RichEdit

Declaration

csharp
public void SelectAll()
vb
Public Sub SelectAll

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectAll() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richeditcontrol-common-api/CS/RichEditAPISample/CodeExamples/RichEditControlActions.cs#L517

csharp
RichEditControl richEdit = e.Item.Tag as RichEditControl;
richEdit.SelectAll();

winforms-richeditcontrol-common-api/VB/RichEditAPISample/CodeExamples/RichEditControlActions.vb#L526

vb
Dim richEdit As RichEditControl = TryCast(e.Item.Tag, RichEditControl)
richEdit.SelectAll()

See Also

RichEditControl Class

RichEditControl Members

DevExpress.XtraRichEdit Namespace