Back to Devexpress

RichEditControl.IsFloatingObjectSelected Property

windowsforms-devexpress-dot-xtrarichedit-dot-richeditcontrol-f509295b.md

latest2.7 KB
Original Source

RichEditControl.IsFloatingObjectSelected Property

Indicates whether any floating object in the document is selected.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.XtraRichEdit.v25.2.dll

NuGet Package : DevExpress.Win.RichEdit

Declaration

csharp
[Browsable(false)]
public bool IsFloatingObjectSelected { get; }
vb
<Browsable(False)>
Public ReadOnly Property IsFloatingObjectSelected As Boolean

Property Value

TypeDescription
Boolean

true if a floating object is selected; otherwise, false.

|

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

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-rich-edit-implement-ms-office-word-format-painter/CS/DXApplication9/Form1.cs#L78

csharp
tableToolsRibbonPageCategory1.Visible = richEditControl.IsSelectionInTable();
    floatingPictureToolsRibbonPageCategory1.Visible = richEditControl.IsFloatingObjectSelected;
}

winforms-rich-edit-implement-ms-office-word-format-painter/VB/DXApplication9/Form1.vb#L71

vb
tableToolsRibbonPageCategory1.Visible = richEditControl.IsSelectionInTable()
    floatingPictureToolsRibbonPageCategory1.Visible = richEditControl.IsFloatingObjectSelected
End Sub

See Also

RichEditControl Class

RichEditControl Members

DevExpress.XtraRichEdit Namespace