Back to Devexpress

ShapeBase.X Property

officefileapi-devexpress-dot-docs-dot-presentation-dot-shapebase.md

latest2.3 KB
Original Source

ShapeBase.X Property

Gets or sets the X-coordinate of the shape.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public float X { get; set; }
vb
Public Property X As Single

Property Value

TypeDescription
Single

The X-coordinate of the shape.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the X property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

presentation-api-extract-content/CS/Program.cs#L65

csharp
.OrderBy(shape => shape.Y)
    .ThenBy(shape => shape.X);
#endregion

presentation-api-extract-content/VB/Program.vb#L52

vb
' #Region "Sort shapes"
            Dim sortedShapes = presentation.Slides(slideNumber).Shapes.Where(Function(shape) TypeOf shape Is Shape AndAlso CType(shape, Shape).TextArea IsNot Nothing).OrderBy(Function(shape) shape.Y).ThenBy(Function(shape) shape.X)
' #End Region

See Also

ShapeBase Class

ShapeBase Members

DevExpress.Docs.Presentation Namespace