TXTextControl.Selection.IsCommonValueSelected Method

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

IsCommonValueSelected(Attribute)

Informs about whether an attribute from the Selection.Attribute enumeration has the same value for the complete selection.

[C#]
public bool IsCommonValueSelected(Selection.Attribute attribute);
[Visual Basic]
Public Function IsCommonValueSelected(ByVal attribute As Selection.Attribute) As Boolean
Parameter Description
attribute

Specifies a possible value from the enumeration.

IsCommonValueSelected(Attribute)

Informs about whether an attribute from the ParagraphFormat.Attribute enumeration has the same value for the complete selection.

[C#]
public bool IsCommonValueSelected(ParagraphFormat.Attribute attribute);
[Visual Basic]
Public Function IsCommonValueSelected(ByVal attribute As ParagraphFormat.Attribute) As Boolean
Parameter Description
attribute

Specifies a possible value from the enumeration.

IsCommonValueSelected(Attribute)

Informs about whether an attribute from the ListFormat.Attribute enumeration has the same value for the complete selection.

[C#]
public bool IsCommonValueSelected(ListFormat.Attribute attribute);
[Visual Basic]
Public Function IsCommonValueSelected(ByVal attribute As ListFormat.Attribute) As Boolean
Parameter Description
attribute

Specifies a possible value from the enumeration.

IsCommonValueSelected(Attribute)

Informs about whether an attribute from the SectionFormat.Attribute enumeration has the same value for the complete selection.

[C#]
public bool IsCommonValueSelected(SectionFormat.Attribute attribute);
[Visual Basic]
Public Function IsCommonValueSelected(ByVal attribute As SectionFormat.Attribute) As Boolean
Parameter Description
attribute

Specifies a possible value from the enumeration.

IsCommonValueSelected(Attribute)

Informs about whether an attribute from the PageMargins.Attribute enumeration has the same value for the complete selection.

[C#]
public bool IsCommonValueSelected(PageMargins.Attribute attribute);
[Visual Basic]
Public Function IsCommonValueSelected(ByVal attribute As PageMargins.Attribute) As Boolean
Parameter Description
attribute

Specifies a possible value from the enumeration.

IsCommonValueSelected(Attribute)

Informs about whether an attribute from the PageSize.Attribute enumeration has the same value for the complete selection.

[C#]
public bool IsCommonValueSelected(PageSize.Attribute attribute);
[Visual Basic]
Public Function IsCommonValueSelected(ByVal attribute As PageSize.Attribute) As Boolean
Parameter Description
attribute

Specifies a possible value from the enumeration.

IsCommonValueSelected(Attribute)

Informs about whether an attribute from the PageBorder.Attribute enumeration has the same value for the complete selection.

[C#]
public bool IsCommonValueSelected(PageBorder.Attribute attribute);
[Visual Basic]
Public Function IsCommonValueSelected(ByVal attribute As PageBorder.Attribute) As Boolean
Parameter Description
attribute

Specifies a possible value from the 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