Back to Devexpress

Shape(ShapeType, Single, Single, Single, Single) Constructor

officefileapi-devexpress-dot-docs-dot-presentation-dot-shape-dot-ctor-x28-devexpress-dot-docs-dot-presentation-dot-shapetype-system-dot-single-system-dot-single-system-dot-single-system-dot-single-x29.md

latest2.0 KB
Original Source

Shape(ShapeType, Single, Single, Single, Single) Constructor

Initializes a new instance of the Shape class with specified settings.

Namespace : DevExpress.Docs.Presentation

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

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public Shape(
    ShapeType type,
    float x = 0F,
    float y = 0F,
    float width = 0F,
    float height = 0F
)
vb
Public Sub New(
    type As ShapeType,
    x As Single = 0F,
    y As Single = 0F,
    width As Single = 0F,
    height As Single = 0F
)

Parameters

NameTypeDescription
typeShapeType

Shape type.

|

Optional Parameters

NameTypeDefaultDescription
xSingle0

The x-coordinate of the shape’s upper-left corner.

| | y | Single | 0 |

The y-coordinate of the shape’s upper-left corner.

| | width | Single | 0 |

Shape width.

| | height | Single | 0 |

Shape height.

|

See Also

Shape Class

Shape Members

DevExpress.Docs.Presentation Namespace