Class RectangleShapeItem
Represents a rectangle shape item.
Inherited Members
Namespace: Neodynamic.SDK.Printing
Assembly: cs.temp.dll.dll
Syntax
public class RectangleShapeItem : ClosedShapeItem, IXmlTemplate, INotifyPropertyChanged
Constructors
RectangleShapeItem()
Initializes a new instance of the RectangleShapeItem class.
Declaration
public RectangleShapeItem()
RectangleShapeItem(Double, Double, Double, Double)
Initializes a new instance of the RectangleShapeItem class with the specified location and size.
Declaration
public RectangleShapeItem(double x, double y, double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x-coordinate of the upper-left corner of the item relative to the upper-left corner of its container. |
System.Double | y | The y-coordinate of the upper-left corner of the item relative to the upper-left corner of its container. |
System.Double | width | The width of the item. |
System.Double | height | The height of the item. |
Properties
CornerRadius
Gets or sets the radii of a rectangle's corners. Default value is 0 (zero)
Declaration
public RectangleCornerRadius CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
RectangleCornerRadius |
RotationAngle
Gets or sets the rotation angle to apply on this item. It is measured clockwise from the x-axis. Default value is 0 (zero)
Declaration
public int RotationAngle { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Clone()
Creates a copy of the current RectangleShapeItem.
Declaration
public override Item Clone()
Returns
Type | Description |
---|---|
Item | A copy of the current RectangleShapeItem. |
Overrides
ConvertToUnit(UnitType, Int32)
Declaration
public override void ConvertToUnit(UnitType unit, int numOfFractionalDigits = -1)
Parameters
Type | Name | Description |
---|---|---|
UnitType | unit | |
System.Int32 | numOfFractionalDigits |
Overrides
UpdateFrom(Item)
Updates this RectangleShapeItem object with the properties of the specified RectangleShapeItem object.
Declaration
public override void UpdateFrom(Item item)
Parameters
Type | Name | Description |
---|---|---|
Item | item | The RectangleShapeItem object that is used for updating this RectangleShapeItem object. |