Class LineWidth
Describes a line width. The "onedimensional" GeoObjects (e.g. Line, Ellipse,
BSpline) have a line with as an attribute. The main propertie of the line width
are the width and the scaling system (LineWidth.Scaling), which defines how to interpret the width.
Inheritance
System.Object
LineWidth
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
[Serializable]
public class LineWidth : IShowPropertyImpl, IShowProperty, IPropertyEntry, INamedAttribute, ISerializable, ICommandHandler
Constructors
|
Improve this Doc
View Source
LineWidth()
Creates an empty and unnamed LineWidth
Declaration
|
Improve this Doc
View Source
LineWidth(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected LineWidth(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
SerializationInfo
|
| System.Runtime.Serialization.StreamingContext |
context |
StreamingContext
|
|
Improve this Doc
View Source
LineWidth(String, Double)
Declaration
public LineWidth(string name, double width)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Double |
width |
|
Fields
|
Improve this Doc
View Source
ThinLine
Declaration
public static LineWidth ThinLine
Field Value
Properties
|
Improve this Doc
View Source
Declaration
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Overrides
|
Improve this Doc
View Source
EntryType
Declaration
public override ShowPropertyEntryType EntryType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
LabelText
Declaration
public override string LabelText { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
|
Improve this Doc
View Source
LabelType
Declaration
public override ShowPropertyLabelFlags LabelType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Parent
Declaration
public IAttributeList Parent { get; set; }
Property Value
|
Improve this Doc
View Source
Scale
Declaration
public LineWidth.Scaling Scale { get; set; }
Property Value
|
Improve this Doc
View Source
SubEntries
Declaration
public override IShowProperty[] SubEntries { get; }
Property Value
Overrides
|
Improve this Doc
View Source
SubEntriesCount
Overrides SubEntriesCount,
returns the number of subentries in this property view.
Declaration
public override int SubEntriesCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
|
Improve this Doc
View Source
Width
Gets or sets the line width of this object.
Declaration
public double Width { get; set; }
Property Value
| Type |
Description |
| System.Double |
|
Methods
|
Improve this Doc
View Source
Added(IPropertyPage)
Declaration
public override void Added(IPropertyPage pp)
Parameters
Overrides
|
Improve this Doc
View Source
Clone()
Returns a clone of this LineWidth
Declaration
Returns
|
Improve this Doc
View Source
GetObjectData(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.
|
|
Improve this Doc
View Source
LabelChanged(String)
Declaration
public override void LabelChanged(string NewText)
Parameters
| Type |
Name |
Description |
| System.String |
NewText |
|
Overrides
|
Improve this Doc
View Source
Read(String, SerializationInfo, StreamingContext)
Declaration
public static LineWidth Read(string name, SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Runtime.Serialization.SerializationInfo |
info |
|
| System.Runtime.Serialization.StreamingContext |
context |
|
Returns
|
Improve this Doc
View Source
Removed(IPropertyPage)
Declaration
public override void Removed(IPropertyPage pp)
Parameters
Overrides
Explicit Interface Implementations
|
Improve this Doc
View Source
INamedAttribute.GetSelectionProperty(String, Project, GeoObjectList)
Declaration
IShowProperty INamedAttribute.GetSelectionProperty(string key, Project project, GeoObjectList geoObjectList)
Parameters
Returns
|
Improve this Doc
View Source
ICommandHandler.OnCommand(String)
Declaration
bool ICommandHandler.OnCommand(string MenuId)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
ICommandHandler.OnSelected(MenuWithHandler, Boolean)
Declaration
void ICommandHandler.OnSelected(MenuWithHandler selectedMenuItem, bool selected)
Parameters
| Type |
Name |
Description |
| MenuWithHandler |
selectedMenuItem |
|
| System.Boolean |
selected |
|
|
Improve this Doc
View Source
ICommandHandler.OnUpdateCommand(String, CommandState)
Declaration
bool ICommandHandler.OnUpdateCommand(string MenuId, CommandState CommandState)
Parameters
| Type |
Name |
Description |
| System.String |
MenuId |
|
| CommandState |
CommandState |
|
Returns
| Type |
Description |
| System.Boolean |
|
Implements
System.Runtime.Serialization.ISerializable