CADability dotNET
Sets an attribut to the GeoObject. There are the following types (keys) of attributes predefined in CADability, which can be set with this method: "Layer": sets a Layer "ColorDef": sets a ColorDef "LineWidth": sets a LineWidth "LinePattern": sets a LinePattern "HatchStyle": sets a HatchStyle "DimensionStyle": sets a DimensionStyle "Style": sets a Style Other attributes may be provided by the user.

Namespace: CADability.GeoObject
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
void SetNamedAttribute(
	string key,
	INamedAttribute toSet
)
Visual Basic
Sub SetNamedAttribute ( _
	key As String, _
	toSet As INamedAttribute _
)
Visual C++
void SetNamedAttribute(
	String^ key, 
	INamedAttribute^ toSet
)

Parameters

key
Type: System..::..String
key or typename of attribute to set
toSet
Type: CADability..::..INamedAttribute
attribute

See Also