Back to Devexpress

SpreadsheetControl.SelectedShape Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-00c28009.md

latest1.6 KB
Original Source

SpreadsheetControl.SelectedShape Property

Gets or sets a shape selected in the active worksheet. This is a dependency property.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
[Browsable(false)]
public Shape SelectedShape { get; set; }
vb
<Browsable(False)>
Public Property SelectedShape As Shape

Property Value

TypeDescription
Shape

A Shape object. If you assign a shape located in a worksheet that is not active, an exception is raised.

|

Remarks

All shapes in a worksheet are contained in the ShapeCollection, accessible via the Worksheet.Shapes property. Use the SelectedShape property to specify a shape selected in the active worksheet. If multiple shapes are selected, the SelectedShape returns the shape selected first.

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace