Class MultiObjectsProperties
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
Collects the property entries with which the attributes of several selected objects are changed at once: the number of objects, line pattern, line width, layer, color and style, the custom attributes and the user data (IMultiObjectUserData) common to all objects and, when all objects are of the same type, the properties they share. The entries are grouped in attributeProperties, which SelectedObjectsProperty shows when more than one object is selected. Changing one of the entries applies the attribute to all selected objects.
public class MultiObjectsProperties
- Inheritance
-
MultiObjectsProperties
- Inherited Members
Constructors
MultiObjectsProperties(IFrame, GeoObjectList)
Creates the entries for the common attributes of selectedObjects; the attribute lists are taken
from the project of frame.
public MultiObjectsProperties(IFrame frame, GeoObjectList selectedObjects)
Parameters
frameIFrameThe frame whose project provides the attribute lists
selectedObjectsGeoObjectListThe selected objects
Fields
attributeProperties
The group entry ("Select.Attributes") which contains all entries for the common attributes of the selected objects.
public SimplePropertyGroup attributeProperties
Field Value
isChangingMultipleAttributes
true while an attribute is being applied to all selected objects. The change events of the objects are ignored during that time, so that the entries are not re-initialized for every single object.
public bool isChangingMultipleAttributes
Field Value
Methods
InitMultiAttributeSelection()
Updates the selection entries (line pattern, line width, layer, color, style) from the selected objects: when all objects share an attribute, it is shown as selected, otherwise the entry shows its "multiple values" text. Called after the selection has changed and whenever an attribute of one of the objects was changed from elsewhere.
public void InitMultiAttributeSelection()