The mode of the property browser determines the object whose properties are currently being displayed by the browser. It is controlled by the Mode property, which can take one of the following values:
-
Selection Anchor - in this mode the browser will show the properties of the current selection anchor. When the selection anchor node changes the browser will automatically update itself.
-
Document - in this mode the browser will show the properties of the document currently connected to the edited view.
-
Active Layer - in this mode the browser will show the properties of the currently active document layer.
-
View - in this mode the browser shows the properties of the view to which it is connected.
The following code instructs the browser to show the properties of the currently active layer:
C# |
Copy Code
|
---|---|
// show the properties of the currently active layer
browser.Mode = PropertyBrowserMode.ActiveLayer;
|
Visual Basic |
Copy Code
|
---|---|
' show the properties of the currently active layer
browser.Mode = PropertyBrowserMode.ActiveLayer
|