Class ShapeItem
An abstract base class that provides basic functionality for any descended ShapeItem class.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Neodynamic.SDK.Printing
Assembly: cs.temp.dll.dll
Syntax
public abstract class ShapeItem : Item, IXmlTemplate, INotifyPropertyChanged
Fields
_height
Declaration
protected double _height
Field Value
Type | Description |
---|---|
System.Double |
_strokeColor
Declaration
protected Color _strokeColor
Field Value
Type | Description |
---|---|
Color |
_strokeColorHex
Declaration
protected string _strokeColorHex
Field Value
Type | Description |
---|---|
System.String |
_strokeThickness
Declaration
protected double _strokeThickness
Field Value
Type | Description |
---|---|
System.Double |
_width
Declaration
protected double _width
Field Value
Type | Description |
---|---|
System.Double |
HexColorPattern
Declaration
protected string HexColorPattern
Field Value
Type | Description |
---|---|
System.String |
Properties
Height
Gets or sets the height of the shape item. Default value is 1
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
StrokeColor
Gets or sets the border color. Default value is Black
Declaration
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
StrokeColorHex
Gets or sets the border color in hex notation.
Declaration
public string StrokeColorHex { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The Color Hex notation is as follows #[AA]RRGGBB where A, R, G, B refers to Aplha, Red, Green and Blue pixels. The following options would also be valid: #RGB or #ARGB (in this short format all channel values must be the same), #RRGGBB or #AARRGGBB.
StrokeThickness
Gets or sets the border thickness. Default value is 0.01
Declaration
public double StrokeThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The specified value is less than 0. |
Width
Gets or sets the width of the shape item. Default value is 1
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
ConvertToUnit(UnitType)
Declaration
public override void ConvertToUnit(UnitType unit)
Parameters
Type | Name | Description |
---|---|---|
UnitType | unit |