Show / Hide Table of Contents

Class ShapeItem

An abstract base class that provides basic functionality for any descended ShapeItem class.

Inheritance
System.Object
Item
ShapeItem
ClosedShapeItem
LineShapeItem
Inherited Members
Item.PropertyChanged
Item.OnPropertyChanged(Item, String)
Item._unitType
Item._dpi
Item._name
Item._x
Item._y
Item._dataField
Item._dataFieldFormatString
Item._useCache
Item._cacheItemId
Item.Name
Item.X
Item.Y
Item.UnitType
Item.Dpi
Item.DataField
Item.DataFieldFormatString
Item.UseCache
Item.CacheItemId
Item._printAsGraphic
Item.PrintAsGraphic
Item._visible
Item.Visible
Item._comments
Item.Comments
Item._tag
Item.Tag
Item._locked
Item.Locked
Item._editable
Item.Editable
Item._resizable
Item.Resizable
Item._expression
Item.Expression
Item._isDesignTime
Item.IsDesignTime
Item._groupName
Item.GroupName
Item._readonly
Item.ReadOnly
Item.HasFixedContent
Item.Clone()
Item.UpdateFrom(Item)
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

_strokeStyle

Declaration
protected StrokeStyle _strokeStyle
Field Value
Type Description
StrokeStyle

_strokeStylePattern

Declaration
protected string _strokeStylePattern
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.

StrokeStyle

Gets or sets the stroke style. Default is Solid

Declaration
public StrokeStyle StrokeStyle { get; set; }
Property Value
Type Description
StrokeStyle

StrokeStylePattern

Gets or sets the stroke style pattern. The patter specifies the dash length, and the gap length separated by a pipe e.g. 0.2|0.1. More than one pair of pattern is supported e.g. 0.1|0.2|0.1|0.5. If empty, both patterns will be the value from StrokeThickness property. Default is empty

Declaration
public string StrokeStylePattern { get; set; }
Property Value
Type Description
System.String

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
Overrides
Item.ConvertToUnit(UnitType)

GetStrokeStylePattern()

Declaration
public float[] GetStrokeStylePattern()
Returns
Type Description
System.Single[]
Back to top Copyright © 2003- Neodynamic SRL
http://www.neodynamic.com