Class HatchStyleLines
An implementation of a HatchStyle, that defines a style consisting of parallel lines.
Implements
Inherited Members
Namespace: CADability.Attribute
Assembly: CADability.dll
Syntax
[Serializable]
public class HatchStyleLines : HatchStyle, IShowProperty, IPropertyEntry, INamedAttribute, ICommandHandler, ISerializable
Constructors
| Improve this Doc View SourceHatchStyleLines()
Declaration
public HatchStyleLines()
HatchStyleLines(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected HatchStyleLines(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | SerializationInfo |
| System.Runtime.Serialization.StreamingContext | context | StreamingContext |
Properties
| Improve this Doc View SourceAlternate
Declaration
public bool Alternate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
AOffset
Declaration
protected Angle AOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| Angle |
ColorDef
Gets or sets the color of the lines of this hatch style
Declaration
public ColorDef ColorDef { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorDef |
LineAngle
Sets or gets the lina angle for this hatch style.
Declaration
public Angle LineAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| Angle |
LineDistance
Sets or gets the line distance for this hatchstyle.
Declaration
public double LineDistance { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
LinePattern
Gets or sets the line pattern for the lines of this hatch style
Declaration
public LinePattern LinePattern { get; set; }
Property Value
| Type | Description |
|---|---|
| LinePattern |
LineWidth
Gets or sets the line width for the lines of this hatch style
Declaration
public LineWidth LineWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| LineWidth |
MarginOffset
Sets or gets the distance from the shapes border
Declaration
public double MarginOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Number
Declaration
public int Number { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Offset
Declaration
public SweepAngle Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| SweepAngle |
SubEntries
Overrides SubEntries, returns the subentries in this property view.
Declaration
public override IShowProperty[] SubEntries { get; }
Property Value
| Type | Description |
|---|---|
| IShowProperty[] |
Overrides
| Improve this Doc View SourceSubEntriesCount
Overrides SubEntriesCount, returns the number of subentries in this property view.
Declaration
public override int SubEntriesCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Overrides
Methods
| Improve this Doc View SourceClone()
Declaration
public override HatchStyle Clone()
Returns
| Type | Description |
|---|---|
| HatchStyle |
Overrides
| Improve this Doc View SourceGenerateContent(CompoundShape, Plane)
This method is used by a Hatch object to calculate its contents. It generates a set of parallel lines according to LineDistance and LineAngle and clips them with the given shape. The lines are projected into the 3D world by the given plane. Clip(ICurve2D, Boolean)
Declaration
public override GeoObjectList GenerateContent(CompoundShape shape, Plane plane)
Parameters
| Type | Name | Description |
|---|---|---|
| CompoundShape | shape | shape of the hatch object |
| Plane | plane | local plane of the hatch object |
Returns
| Type | Description |
|---|---|
| GeoObjectList |
Overrides
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
| System.Runtime.Serialization.StreamingContext | context | The destination (System.Runtime.Serialization.StreamingContext) for this serialization. |
GetShowProperty()
Declaration
public override IShowProperty GetShowProperty()
Returns
| Type | Description |
|---|---|
| IShowProperty |
Overrides
| Improve this Doc View SourceRemoved(IPropertyTreeView)
Overrides Removed(IPropertyTreeView)
Declaration
public override void Removed(IPropertyTreeView propertyTreeView)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyTreeView | propertyTreeView | the IPropertyTreeView from which it was removed |