Show / Hide Table of Contents

Class MLineStyle

Represents as MLine style.

Inheritance
System.Object
DxfObject
TableObject
MLineStyle
Implements
IHasXData
System.ICloneable
System.IComparable
System.IComparable<TableObject>
System.IEquatable<TableObject>
Inherited Members
TableObject.NameChanged
TableObject.OnNameChangedEvent(String, String)
TableObject.XDataAddAppReg
TableObject.OnXDataAddAppRegEvent(ApplicationRegistry)
TableObject.XDataRemoveAppReg
TableObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)
TableObject.Name
TableObject.IsReserved
TableObject.InvalidCharacters
TableObject.XData
TableObject.IsValidName(String)
TableObject.ToString()
TableObject.CompareTo(Object)
TableObject.CompareTo(TableObject)
TableObject.GetHashCode()
TableObject.Equals(Object)
TableObject.Equals(TableObject)
DxfObject.CodeName
DxfObject.Handle
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: netDxf.Objects
Assembly: CADability.dll
Syntax
public class MLineStyle : TableObject, IHasXData, ICloneable, IComparable, IComparable<TableObject>, IEquatable<TableObject>

Constructors

| Improve this Doc View Source

MLineStyle(String)

Initializes a new instance of the MLineStyle class.

Declaration
public MLineStyle(string name)
Parameters
Type Name Description
System.String name

MLine style name.

Remarks

By default the multiline style has to elements with offsets 0.5 y -0.5.

| Improve this Doc View Source

MLineStyle(String, IEnumerable<MLineStyleElement>)

Initializes a new instance of the MLineStyle class.

Declaration
public MLineStyle(string name, IEnumerable<MLineStyleElement> elements)
Parameters
Type Name Description
System.String name

MLine style name.

System.Collections.Generic.IEnumerable<MLineStyleElement> elements

Elements of the multiline, if null two default elements will be added.

| Improve this Doc View Source

MLineStyle(String, IEnumerable<MLineStyleElement>, String)

Initializes a new instance of the MLineStyle class.

Declaration
public MLineStyle(string name, IEnumerable<MLineStyleElement> elements, string description)
Parameters
Type Name Description
System.String name

MLine style name.

System.Collections.Generic.IEnumerable<MLineStyleElement> elements

Elements of the multiline, if null two default elements will be added.

System.String description

MLine style description (optional).

| Improve this Doc View Source

MLineStyle(String, String)

Initializes a new instance of the MLineStyle class.

Declaration
public MLineStyle(string name, string description)
Parameters
Type Name Description
System.String name

MLine style name.

System.String description

MLine style description.

Remarks

By default the multiline style has to elements with offsets 0.5 y -0.5.

Fields

| Improve this Doc View Source

DefaultName

Default multiline style name.

Declaration
public const string DefaultName = "Standard"
Field Value
Type Description
System.String

Properties

| Improve this Doc View Source

Default

Gets the default MLine style.

Declaration
public static MLineStyle Default { get; }
Property Value
Type Description
MLineStyle
| Improve this Doc View Source

Description

Gets or sets the line type description (optional).

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Elements

Gets the list of elements that make up the multiline.

Declaration
public ObservableCollection<MLineStyleElement> Elements { get; }
Property Value
Type Description
ObservableCollection<MLineStyleElement>
Remarks

The elements list must be ordered from larger to smaller Offset values. During the initialization process the list will be sorted automatically, but if new elements are added individually to the list or the offset values of individual elements are modified, it will have to be sorted manually calling the Sort() method.

| Improve this Doc View Source

EndAngle

Gets or sets the MLine end angle in degrees.

Declaration
public double EndAngle { get; set; }
Property Value
Type Description
System.Double
Remarks

Valid values range from 10.0 to 170.0 degrees. Default: 90.0.

| Improve this Doc View Source

FillColor

Gets or sets the MLine fill color.

Declaration
public AciColor FillColor { get; set; }
Property Value
Type Description
AciColor
Remarks

AutoCad2000 DXF version does not support true colors for MLineStyle fill color.

| Improve this Doc View Source

Flags

Gets or sets the MLine style flags.

Declaration
public MLineStyleFlags Flags { get; set; }
Property Value
Type Description
MLineStyleFlags
| Improve this Doc View Source

Owner

Gets the owner of the actual multi line style.

Declaration
public MLineStyles Owner { get; }
Property Value
Type Description
MLineStyles
| Improve this Doc View Source

StartAngle

Gets or sets the MLine start angle in degrees.

Declaration
public double StartAngle { get; set; }
Property Value
Type Description
System.Double
Remarks

Valid values range from 10.0 to 170.0 degrees. Default: 90.0.

Methods

| Improve this Doc View Source

Clone()

Creates a new MLineStyle that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new MLineStyle that is a copy of this instance.

Overrides
TableObject.Clone()
| Improve this Doc View Source

Clone(String)

Creates a new MLineStyle that is a copy of the current instance.

Declaration
public override TableObject Clone(string newName)
Parameters
Type Name Description
System.String newName

MLineStyle name of the copy.

Returns
Type Description
TableObject

A new MLineStyle that is a copy of this instance.

Overrides
TableObject.Clone(String)
| Improve this Doc View Source

OnMLineStyleElementAddedEvent(MLineStyleElement)

Declaration
protected virtual void OnMLineStyleElementAddedEvent(MLineStyleElement item)
Parameters
Type Name Description
MLineStyleElement item
| Improve this Doc View Source

OnMLineStyleElementLinetypeChangedEvent(Linetype, Linetype)

Declaration
protected virtual Linetype OnMLineStyleElementLinetypeChangedEvent(Linetype oldLinetype, Linetype newLinetype)
Parameters
Type Name Description
Linetype oldLinetype
Linetype newLinetype
Returns
Type Description
Linetype
| Improve this Doc View Source

OnMLineStyleElementRemovedEvent(MLineStyleElement)

Declaration
protected virtual void OnMLineStyleElementRemovedEvent(MLineStyleElement item)
Parameters
Type Name Description
MLineStyleElement item

Events

| Improve this Doc View Source

MLineStyleElementAdded

Declaration
public event MLineStyle.MLineStyleElementAddedEventHandler MLineStyleElementAdded
Event Type
Type Description
MLineStyle.MLineStyleElementAddedEventHandler
| Improve this Doc View Source

MLineStyleElementLinetypeChanged

Declaration
public event MLineStyle.MLineStyleElementLinetypeChangedEventHandler MLineStyleElementLinetypeChanged
Event Type
Type Description
MLineStyle.MLineStyleElementLinetypeChangedEventHandler
| Improve this Doc View Source

MLineStyleElementRemoved

Declaration
public event MLineStyle.MLineStyleElementRemovedEventHandler MLineStyleElementRemoved
Event Type
Type Description
MLineStyle.MLineStyleElementRemovedEventHandler

Implements

IHasXData
System.ICloneable
System.IComparable
System.IComparable<T>
System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX