LabelStyleCollection.Remove(String) Method

Removes a label style by name from the collection.



Namespace: Autodesk.Civil.DatabaseServices.Styles
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.1516

Syntax

C#

public override void Remove(
	string styleName
)

VB

Public Overrides Sub Remove ( 
	styleName As String
)

C++

public:
virtual void Remove(
	String^ styleName
) override

Parameters

styleName  String
The name of the label style to remove from the collection.

Exceptions

ExceptionCondition
ArgumentException Thrown when the name is invalid or not exist in the collection.
InvalidOperationException Thrown when label style is still in use.

Remarks

It only searches direct child label styles and does not include deeper descendant levels.

See Also

Reference

LabelStyleCollection Class
Remove Overload
Autodesk.Civil.DatabaseServices.Styles Namespace