Table of Contents

Class ModelsProperty

Namespace
CADability.UserInterface
Assembly
CADability.dll

The IShowProperty implementation for the models contained in a Project.

public class ModelsProperty : IShowPropertyImpl, IShowProperty, IPropertyEntry, ICommandHandler
Inheritance
ModelsProperty
Implements
Inherited Members

Constructors

ModelsProperty(Project)

Creates the entry for the models of project.

public ModelsProperty(Project project)

Parameters

project Project

The project whose models are listed

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

Overrides EntryType, returns GroupTitle.

public override ShowPropertyEntryType EntryType { get; }

Property Value

ShowPropertyEntryType

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

Project

The project whose models are listed by this entry.

public Project Project { get; }

Property Value

Project

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

Methods

Refresh()

Forces the entry to refresh its contents

public override void Refresh()