One of the least commonly used properties of the Selection class is IsCommonValueSelected. I have recently assisted several customers with this property and thus would like to take this opportunity to explain its exact functionality.
This property informs on whether a certain attribute has the same value as the value of the complete selection.
This is very important, for example, to synchronize a customized button bar with the current formatting of the selected text like bold or italic.
Possible attributes are:
The following VB.NET code return true, if the complete selection is formatted in bold.
Dim IsSelected As Boolean = TextControl1.Selection.IsCommonValueSelected(TXTextControl.Selection.Attribute.Bold)Can't see the code! Need some one to format the textbox that contains the code so we can see it.