Class Shape
- Namespace
- FileFormat.Words.IElements
- Assembly
- FileFormat.Words.dll
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
x
intx position of the shape.
y
inty position of the shape.
width
intWidth of the shape.
height
intHeight of the shape.
shapeType
ShapeType
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; }