Table of Contents

Class Shape

Namespace
Openize.Words.IElements
Assembly
Openize.OpenXMLSDK.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 int

x position of the shape.

y int

y position of the shape.

width int

Width of the shape.

height int

Height of the shape.

shapeType ShapeType

Type of the shape (e.g rectangle, ellipse etc).

Properties

ElementId

Gets the unique identifier of the shape.

public int ElementId { get; }

Property Value

int

Height

Gets or sets the height of the shape.

public int Height { get; set; }

Property Value

int

Type

Gets or sets the type of the shape.

public ShapeType Type { get; set; }

Property Value

ShapeType

Width

Gets or sets the width of the shape.

public int Width { get; set; }

Property Value

int

X

Gets or sets the x position of the shape.

public int X { get; set; }

Property Value

int

Y

Gets or sets the y position of the shape.

public int Y { get; set; }

Property Value

int