Class Shape
Represents a shape element in a Word document.
public class Shape : IElement
- Inheritance
-
Shape
- Implements
- Inherited Members
Constructors
Shape()
Initializes a new instance of the Shape class.
public Shape()
Shape(int, int, int, int, ShapeType)
Initializes a new instance of the Shape class with specified values.
public Shape(int x, int y, int width, int height, ShapeType shapeType)
Parameters
xintx position of the shape.
yinty position of the shape.
widthintWidth of the shape.
heightintHeight of the shape.
shapeTypeShapeTypeType of the shape (e.g rectangle, ellipse etc).
Properties
ElementId
Gets the unique identifier of the shape.
public int ElementId { get; }
Property Value
Height
Gets or sets the height of the shape.
public int Height { get; set; }
Property Value
Type
Gets or sets the type of the shape.
public ShapeType Type { get; set; }
Property Value
Width
Gets or sets the width of the shape.
public int Width { get; set; }
Property Value
X
Gets or sets the x position of the shape.
public int X { get; set; }
Property Value
Y
Gets or sets the y position of the shape.
public int Y { get; set; }