TX Text Control .NET for WPF

IsCommonValueSelected Method

Method|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WPF.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public bool IsCommonValueSelected(Selection.Attribute attribute);

Parameters

ParameterDescription
attribute

Specifies a possible value from the Drawing.Selection.Attribute enumeration.

Examples

The following example checks whether common value selected applies to the selection.

if (selection.IsCommonValueSelected(TXTextControl.Drawing.Selection.Attribute.Angle))
{
    Console.WriteLine("Is Common Value Selected completed successfully.");
}