C# Класс RevitLookup.Test.SDKSamples.TypeSelector.TypeSelectorForm

Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_app Autodesk.Revit.UI.UIApplication
m_curObj System.Object
m_curSymbolId int
m_symbolSet List
m_treeTypeNodes System.Collections.ArrayList
m_types System.Collections.ArrayList

Открытые методы

Метод Описание
TypeSelectorForm ( Autodesk revitApp, ICollection elemSet ) : System

Защищенные методы

Метод Описание
AddObjectsToTree ( IEnumerable objs ) : void
CommonInit ( IEnumerable objs ) : void
DisplayAvailableSymbols ( ) : void

The list of available Symbols. Need to just walk the list and print out a human read-able label

Dispose ( bool disposing ) : void

Clean up any resources being used.

GetAvailableSymbols ( System curObj ) : void

For a given Element, get all available Symbols that it could be set to. NOTE: since there is no virtual function to get and set Symbols for an element, we have to have a switch-like statement and treat each known type manually.

GetExistingNodeForType ( System objType ) : TreeNode

If we've already seen this type before, return the existing TreeNode object

Приватные методы

Метод Описание
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnTreeNodeSelect ( object sender, TreeViewEventArgs e ) : void

User selected a node of the tree. Just change what is displayed in the ListBox for the current node.

OnTypeChanged ( object sender, EventArgs e ) : void

User selected a different item in the ListBox, update the underlying Element to point to the new Symbol selected.

Описание методов

AddObjectsToTree() защищенный Метод

protected AddObjectsToTree ( IEnumerable objs ) : void
objs IEnumerable
Результат void

CommonInit() защищенный Метод

protected CommonInit ( IEnumerable objs ) : void
objs IEnumerable
Результат void

DisplayAvailableSymbols() защищенный Метод

The list of available Symbols. Need to just walk the list and print out a human read-able label
protected DisplayAvailableSymbols ( ) : void
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetAvailableSymbols() защищенный Метод

For a given Element, get all available Symbols that it could be set to. NOTE: since there is no virtual function to get and set Symbols for an element, we have to have a switch-like statement and treat each known type manually.
protected GetAvailableSymbols ( System curObj ) : void
curObj System The Element that was selected in the Tree
Результат void

GetExistingNodeForType() защищенный Метод

If we've already seen this type before, return the existing TreeNode object
protected GetExistingNodeForType ( System objType ) : TreeNode
objType System System.Type we're looking to find
Результат System.Windows.Forms.TreeNode

TypeSelectorForm() публичный Метод

public TypeSelectorForm ( Autodesk revitApp, ICollection elemSet ) : System
revitApp Autodesk
elemSet ICollection
Результат System

Описание свойств

m_app защищенное свойство

protected Autodesk.Revit.UI.UIApplication m_app
Результат Autodesk.Revit.UI.UIApplication

m_curObj защищенное свойство

protected Object,System m_curObj
Результат System.Object

m_curSymbolId защищенное свойство

protected int m_curSymbolId
Результат int

m_symbolSet защищенное свойство

protected List m_symbolSet
Результат List

m_treeTypeNodes защищенное свойство

protected ArrayList,System.Collections m_treeTypeNodes
Результат System.Collections.ArrayList

m_types защищенное свойство

protected ArrayList,System.Collections m_types
Результат System.Collections.ArrayList