Table of Contents

Class Grid

Namespace
CADability
Assembly
CADability.dll

The Grid settings, used only in class Projection.

public class Grid : IShowPropertyImpl, IShowProperty, IPropertyEntry, ISerializable
Inheritance
Grid
Implements
Inherited Members

Constructors

Grid()

public Grid()

Grid(SerializationInfo, StreamingContext)

Constructor required by deserialization

protected Grid(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

SerializationInfo

context StreamingContext

StreamingContext

Properties

DisplayMode

public Grid.Appearance DisplayMode { get; set; }

Property Value

Grid.Appearance

EntryType

Overrides EntryType, returns GroupTitle.

public override ShowPropertyEntryType EntryType { get; }

Property Value

ShowPropertyEntryType

Show

public bool Show { get; set; }

Property Value

bool

SubEntries

The sub entries shown below this entry when it is opened in the property page. The default implementation has none and returns an empty array.

public override IShowProperty[] SubEntries { get; }

Property Value

IShowProperty[]

SubEntriesCount

The number of SubEntries, 0 for an entry that cannot be opened. The default implementation returns 0.

public override int SubEntriesCount { get; }

Property Value

int

XDistance

public double XDistance { get; set; }

Property Value

double

YDistance

public double YDistance { get; set; }

Property Value

double

Methods

GetObjectData(SerializationInfo, StreamingContext)

Writes the data of this object for the legacy binary serialization (ISerializable). Files are written in the JSON format (IJsonSerialize) now; the binary format is still read.

public void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

receives the data

context StreamingContext

the destination of the serialization

Events

GridChangedEvent

public event Grid.GridChangedDelegate GridChangedEvent

Event Type

Grid.GridChangedDelegate