# Selection.IsCommonValueSelected Method

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDrawing.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Drawing > Selection.IsCommonValueSelected Method
- **492 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/iscommonvalueselected-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/iscommonvalueselected-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/iscommonvalueselected-method/llms-full.txt

---

### Description

Informs about whether an attribute from the [Drawing.Selection.Attribute](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection-attribute/enumeration/llms-full.txt) enumeration has the same value for the complete [shapes selection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/llms-full.txt).

### Syntax

```csharp
public bool IsCommonValueSelected(Selection.Attribute attribute);
```

```vbnet
Public Function IsCommonValueSelected(attribute As Selection.Attribute) As Boolean
```

### Parameters

| Parameter | Description |
|---|---|
| attribute | Specifies a possible value from the [Drawing.Selection.Attribute](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection-attribute/enumeration/llms-full.txt) enumeration. |

### Examples

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

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

```vbnet
If selection.IsCommonValueSelected(TXTextControl.Drawing.Selection.Attribute.Angle) Then
    Console.WriteLine("Is Common Value Selected completed successfully.")
End If
```

---

## Nearby

- **Previous:** [Selection.CanSendToBack Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/cansendtoback-property/llms-full.txt)
- **Next:** [Selection.SendBackward Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/selection/sendbackward-method/llms-full.txt)
