TX Text Control .NET Documentation

Selection.IsCommonValueSelected Method

Description:Overloaded. Informs about whether a certain attribute has the same value for the complete selection.

Syntax:
[C#] public bool IsCommonValueSelected(Attribute attribute); public bool IsCommonValueSelected(ParagraphFormat.Attribute attribute); public bool IsCommonValueSelected(ListFormat.Attribute attribute); public bool IsCommonValueSelected(SectionFormat.Attribute attribute); public bool IsCommonValueSelected(PageMargins.Attribute attribute);
[Visual Basic] Public Function IsCommonValueSelected(ByVal attribute As Attribute) As Boolean Public Function IsCommonValueSelected(ByVal attribute As ParagraphFormat.Attribute) As Boolean Public Function IsCommonValueSelected(ByVal attribute As ListFormat.Attribute) As Boolean Public Function IsCommonValueSelected(ByVal attribute As SectionFormat.Attribute) As Boolean Public Function IsCommonValueSelected(ByVal attribute As PageMargins.Attribute) As Boolean
ParameterDescription
attributeSpecifies a possible formatting attribute. It can be a value from the Selection.Attribute, ParagraphFormat.Attribute, ListFormat.Attribute, SectionFormat.Attribute or PageMargins.Attribute enumeration.

Return Value:The return value is true if the complete selection is formatted with the same value of the specified attribute. Otherwise it is false.

See also:Text Selections and Character Input, Graphical Overview.