LabelStyleAddComponent Method |
Add a valid component into the label style.
Namespace: Autodesk.Civil.DatabaseServices.StylesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic ObjectId AddComponent(
string name,
LabelStyleComponentType type
)
Public Function AddComponent (
name As String,
type As LabelStyleComponentType
) As ObjectId
public:
ObjectId AddComponent(
String^ name,
LabelStyleComponentType type
)
Parameters
- name String
- The name of component.
- type LabelStyleComponentType
- The type of component.
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The type is ReferenceText or TextForEach;
- The type is not supported by this label style;
- The name is null, or duplicate, or its length is not in the interval 1 - 128.
|
See Also