[]
        
(Showing Draft Content)

C1.C1Preview.RenderRectangle

RenderRectangle Class

Represents a rectangle in a C1PrintDocument. This is also the base class for RenderEllipse and RenderRoundRectangle classes.

Namespace: C1.C1Preview
Assembly: C1.PrintDocument.4.8.dll
Syntax
public class RenderRectangle : RenderShapeBase, IStyleOwner, IDocumentLocation

Constructors

Name Description
RenderRectangle()

Initializes a new instance of the RenderRectangle class. The location and size of the rectangle are set to those of the current RenderRectangle object.

RenderRectangle(Unit, Unit)

Initializes a new instance of the RenderRectangle class, assigning the width and height of the rectangle. The location of the rectangle is set to the location of the current RenderRectangle.

RenderRectangle(Unit, Unit, LineDef)

Initializes a new instance of the RenderRectangle class, assigning the width and height of the rectangle, and the LineDef used to draw it. The location of the rectangle is set to the location of the current RenderRectangle.

RenderRectangle(Unit, Unit, LineDef, Brush)

Initializes a new instance of the RenderRectangle class, assigning the width and height of the rectangle, the LineDef used to draw it, and the fill brush. The location of the rectangle is set to the location of the current RenderRectangle.

RenderRectangle(Unit, Unit, LineDef, Color)

Initializes a new instance of the RenderRectangle class, assigning the width and height of the rectangle, the LineDef used to draw it, and the fill color. The location of the rectangle is set to the location of the current RenderRectangle.

RenderRectangle(Unit, Unit, Unit, Unit)

Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle.

RenderRectangle(Unit, Unit, Unit, Unit, LineDef)

Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle, and the LineDef used to draw it.

RenderRectangle(Unit, Unit, Unit, Unit, LineDef, Brush)

Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle, the LineDef used to draw it, and the fill brush.

RenderRectangle(Unit, Unit, Unit, Unit, LineDef, Color)

Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle, the LineDef used to draw it, and the fill color.

Properties

Name Description
Rectangle

Gets the RectangleProps object describing the geometric rectangle represented by the current RenderRectangle object. The coordinates of the rectangle are relative to the left top corner of the current RenderRectangle object.

Methods

Name Description
CreateSame()

Creates new empty RenderRectangle object linked with same C1PrintDocument as current object.