Table of Contents

Class CurveProperty

Namespace
CADability.UserInterface
Assembly
CADability.dll

Property entry (a selectable group title) which represents a single ICurve in the property grid. It shows the description of the curve as its label and raises SelectionChangedEvent when the user selects it. Used by CADability.UserInterface.CurvesProperty to list the curves a curve input of a construction has found under the mouse.

public class CurveProperty : IShowPropertyImpl, IShowProperty, IPropertyEntry
Inheritance
CurveProperty
Implements
Inherited Members

Constructors

CurveProperty(ICurve)

Creates the entry for curve; the description of the curve (Description) becomes its label.

public CurveProperty(ICurve curve)

Parameters

curve ICurve

The curve represented by this entry

Properties

ContextMenu

Implementation of ContextMenu: the default returns null. An entry whose LabelType contains ContextMenu must override it.

public override MenuWithHandler[] ContextMenu { get; }

Property Value

MenuWithHandler[]

EntryType

The kind of entry (see ShowPropertyEntryType): a simple entry, a group title, an editable value... It decides how the property page displays the entry. The default implementation returns SimpleEntry.

public override ShowPropertyEntryType EntryType { get; }

Property Value

ShowPropertyEntryType

LabelText

Implementation of LabelText, returns either labelTextInternal (if not null) or GetString(string)(resourceId+".Label") Whe set, labelTextInternal is set.

public override string LabelText { get; set; }

Property Value

string

LabelType

How the label of this entry behaves (see ShowPropertyLabelFlags): whether it can be selected or edited, is bold or has a context menu. The default implementation returns Selectable.

public override ShowPropertyLabelFlags LabelType { get; }

Property Value

ShowPropertyLabelFlags

Methods

Selected()

Implementation of Selected(), raises the StateChangedEvent

public override void Selected()

SetSelected(bool)

Sets whether the entry is displayed as selected (Selected) without raising SelectionChangedEvent. CADability.UserInterface.CurvesProperty uses it to mark the current curve.

public void SetSelected(bool IsSelected)

Parameters

IsSelected bool

true to display the entry as selected

Events

SelectionChangedEvent

Raised when the user selects this entry in the property page.

public event CurveProperty.SelectionChangedDelegate SelectionChangedEvent

Event Type

CurveProperty.SelectionChangedDelegate