Interface INamedAttribute
All Attributes for IGeoObject objects (e.g. Layer) are identified by name. They all implement this interface
Namespace: CADability
Assembly: CADability.dll
Syntax
public interface INamedAttribute
Properties
| Improve this Doc View SourceName
The unique name of the attribute
Declaration
string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Parent
The list that contains this attribute (may also be null)
Declaration
IAttributeList Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| IAttributeList |
Methods
| Improve this Doc View SourceGetSelectionProperty(String, Project, GeoObjectList)
Gets a selection property to select an appropriate attribute from a list. The current attribute can be retrieved by calling IGeoObject.GetNamedAttribute(key) and set by calling IGeoObject.SetNamedAttribute(key, newValue). List list of available properties should be retreived for the project by calling IAttributeListContainer.GetList(key).
Declaration
IShowProperty GetSelectionProperty(string key, Project project, GeoObjectList geoObjectList)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The unique key of the attribute |
| Project | project | The project that contains the attributeList |
| GeoObjectList | geoObjectList |
Returns
| Type | Description |
|---|---|
| IShowProperty |