Show / Hide Table of Contents

Interface IPropertyTreeView

Das Interface, das von dem PropertyDisplay Control zu Verfügung gestellt werden muss. CADability implementiert mit PropertyDisplay ein Control, welches dieses Interface zu Verfügung stellt. Das PropertyDisplay Control kann aber auch durch ein Control des Anwenders ersetzt werden. Dieses muss lediglich das IPropertyTreeView Interface implementieren.

Namespace: CADability.UserInterface
Assembly: CADability.dll
Syntax
public interface IPropertyTreeView

Properties

| Improve this Doc View Source

ActiveView

Liefert das aktive View Objekt. Dieses kann auch fehlen, dann wird null geliefert.

Declaration
IView ActiveView { get; set; }
Property Value
Type Description
IView
| Improve this Doc View Source

AllIds

Declaration
string[] AllIds { get; }
Property Value
Type Description
System.String[]
| Improve this Doc View Source

DefaultLineHeight

Liefert die Standard Zeilenhöhe der Anzeige

Declaration
int DefaultLineHeight { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

AddShowProperty(IShowProperty, Boolean)

Fügt das im Parameter gegebene Objekt zur Anzeige hinzu.

Declaration
void AddShowProperty(IShowProperty ToAdd, bool TopMost)
Parameters
Type Name Description
IShowProperty ToAdd

Dieses Objekt soll angezeigt werden

System.Boolean TopMost

true: an oberster Stelle, false: an unterster Stelle.

| Improve this Doc View Source

ChildFocusChanged(IShowProperty, Boolean)

Declaration
void ChildFocusChanged(IShowProperty child, bool gotFocus)
Parameters
Type Name Description
IShowProperty child
System.Boolean gotFocus
| Improve this Doc View Source

Dispose()

Declaration
void Dispose()
| Improve this Doc View Source

FindFromHelpLink(String)

Finds the IShowProperty object with the given help link (HelpLink). The help link is used as a kind of unique id. It is usually the the resource id for the label text. If the desired entry is not visible it will not be found. You will first have to open the sub entries of the parent entry (OpenSubEntries(IShowProperty, Boolean)).

Declaration
IShowProperty FindFromHelpLink(string HelpLink)
Parameters
Type Name Description
System.String HelpLink

The help link for the desired entry

Returns
Type Description
IShowProperty

The IShowProperty entry

| Improve this Doc View Source

FocusEntered(IShowProperty, IShowProperty, IShowProperty)

Checks, whether a Focus change from oldFocus to newFocus implies a focus change to "toTest" or one of its child entries from some entry outside of "toTest". If newFocus is not toTest or one of its children "false" is returned. If the focus changes from one child of toTest to another or from a child of toTest to toTest itself or from toTest to one of its children, false is returned.

Declaration
bool FocusEntered(IShowProperty toTest, IShowProperty oldFocus, IShowProperty newFocus)
Parameters
Type Name Description
IShowProperty toTest

the entry beeing examined

IShowProperty oldFocus

the entry that lost the focus

IShowProperty newFocus

the entry that got the focus

Returns
Type Description
System.Boolean

true if toTest lost the focus

| Improve this Doc View Source

FocusLeft(IShowProperty, IShowProperty, IShowProperty)

Checks, whether a Focus change from oldFocus to newFocus implies a focus change from "toTest" or one of its child entries to some entry outside of "toTest". If oldFocus is not toTest or one of its children "false" is returned. If the focus changes from one child of toTest to another or from a child of toTest to toTest itself or from toTest to one of its children, false is returned.

Declaration
bool FocusLeft(IShowProperty toTest, IShowProperty oldFocus, IShowProperty newFocus)
Parameters
Type Name Description
IShowProperty toTest

the entry beeing examined

IShowProperty oldFocus

the entry that lost the focus

IShowProperty newFocus

the entry that got the focus

Returns
Type Description
System.Boolean

true if toTest lost the focus

| Improve this Doc View Source

GetBoundsForControl(Rectangle)

Declaration
Rectangle GetBoundsForControl(Rectangle position)
Parameters
Type Name Description
System.Drawing.Rectangle position
Returns
Type Description
System.Drawing.Rectangle
| Improve this Doc View Source

GetCurrentSelection()

Declaration
IShowProperty GetCurrentSelection()
Returns
Type Description
IShowProperty
| Improve this Doc View Source

GetFrame()

Returns the IFrame object of the context of this IPropertyTreeView

Declaration
IFrame GetFrame()
Returns
Type Description
IFrame
| Improve this Doc View Source

GetParent(IShowProperty)

Declaration
IShowProperty GetParent(IShowProperty child)
Parameters
Type Name Description
IShowProperty child
Returns
Type Description
IShowProperty
| Improve this Doc View Source

GetPointForControl(Point)

Declaration
Point GetPointForControl(Point loc)
Parameters
Type Name Description
System.Drawing.Point loc
Returns
Type Description
System.Drawing.Point
| Improve this Doc View Source

HasTopLevelShowProperty(IShowProperty)

Determins whether the given IShowProperty LookForThis is one of the root ShowProperties.

Declaration
bool HasTopLevelShowProperty(IShowProperty LookForThis)
Parameters
Type Name Description
IShowProperty LookForThis

look for this IShowProperty object

Returns
Type Description
System.Boolean

true, if LookForThis is a root ShowProperty, false otherwise

| Improve this Doc View Source

IsOnTop()

Determins whether this IPropertyTreeView is on top of all IPropertyTreeView objects. Several IPropertyTreeViews reside in the ControlCenter in different tab pages. Determins whether this IPropertyTreeView is in the selected tab page.

Declaration
bool IsOnTop()
Returns
Type Description
System.Boolean

true if on top, false otherwise

| Improve this Doc View Source

IsOpen(IShowProperty)

Declaration
bool IsOpen(IShowProperty toTest)
Parameters
Type Name Description
IShowProperty toTest
Returns
Type Description
System.Boolean
| Improve this Doc View Source

MakeVisible(IShowProperty)

Das im Parameter gegebene Objekt soll sichtbar dargestellt werden.

Declaration
void MakeVisible(IShowProperty ToShow)
Parameters
Type Name Description
IShowProperty ToShow

Das anzuzeigende Objekt.

| Improve this Doc View Source

OpenSubEntries(IShowProperty, Boolean)

Die Untereinträge des im Parameter gegebenen Objektes sollenn (erzeugt und) sichtbar sein.

Declaration
void OpenSubEntries(IShowProperty ToOpen, bool open)
Parameters
Type Name Description
IShowProperty ToOpen
System.Boolean open
| Improve this Doc View Source

PopupContextMenu(IShowProperty)

Declaration
void PopupContextMenu(IShowProperty entry)
Parameters
Type Name Description
IShowProperty entry
| Improve this Doc View Source

Refresh(IShowProperty)

Das im Parameter gegebene Objekt muss neu dargestellt werden. Z.B wenn sich die Liste der Unterobjekte geändert hat.

Declaration
void Refresh(IShowProperty ToRefresh)
Parameters
Type Name Description
IShowProperty ToRefresh

Das neu darzustellende Objekt.

| Improve this Doc View Source

RemoveShowProperty(IShowProperty)

Das im Parameter gegebene Objekt soll nicht mehr angezeigt werden.

Declaration
void RemoveShowProperty(IShowProperty ToRemove)
Parameters
Type Name Description
IShowProperty ToRemove

Die zu entfernende Anzeige.

| Improve this Doc View Source

ReplaceShowProperty(IShowProperty, IShowProperty)

Ersetzt eine Anzeige durch eine andere.

Declaration
void ReplaceShowProperty(IShowProperty ToReplace, IShowProperty ToInsert)
Parameters
Type Name Description
IShowProperty ToReplace

Die zu ersetzende Anzeige

IShowProperty ToInsert

Die neue Anzeige

| Improve this Doc View Source

SelectEntry(IShowProperty)

Das im Parameter gegebene Objekt soll markiert dargestellt werden.

Declaration
void SelectEntry(IShowProperty NewSelection)
Parameters
Type Name Description
IShowProperty NewSelection

Das neu zu markierende objekt.

| Improve this Doc View Source

SelectNext(IShowProperty, Boolean)

Die Untereinträge des im Parameter gegebenen Objektes sollenn (erzeugt und) sichtbar sein.

Declaration
void SelectNext(IShowProperty CurrentProperty, bool Forward)
Parameters
Type Name Description
IShowProperty CurrentProperty
System.Boolean Forward

=wahr setzt den Fukus auf das nächste Objekt der Tab-Reighenfolge, = falsch auf das verhergehende

| Improve this Doc View Source

SetFont(Font)

Declaration
void SetFont(Font font)
Parameters
Type Name Description
System.Drawing.Font font
| Improve this Doc View Source

StartEditLabel(IShowProperty)

Der LabelText des im Parameter gegebenen Objektes soll editiert werden.

Declaration
void StartEditLabel(IShowProperty ToEdit)
Parameters
Type Name Description
IShowProperty ToEdit

Das zu editiernde Objekt

Events

| Improve this Doc View Source

FocusChangedEvent

Declaration
event FocusChangedDelegate FocusChangedEvent
Event Type
Type Description
FocusChangedDelegate
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX