Creates a new instance of a ViewFrameLabelGroup on the ViewFrameGroup with the specified label style and anchor position.

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

Syntax

C#
public static ObjectId Create(
	ObjectId viewFrameGroupId,
	ObjectId labelStyleId,
	ViewFrameLabelLocationType anchorPosition
)
Visual Basic
Public Shared Function Create ( _
	viewFrameGroupId As ObjectId, _
	labelStyleId As ObjectId, _
	anchorPosition As ViewFrameLabelLocationType _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	ObjectId viewFrameGroupId, 
	ObjectId labelStyleId, 
	ViewFrameLabelLocationType anchorPosition
)

Parameters

viewFrameGroupId
Type: ObjectId
The ObjectId of the ViewFrameGroup where the label group is labeling.
labelStyleId
Type: ObjectId
The ObjectId of the ViewFrameLabel style.
anchorPosition
Type: Autodesk.Civil..::..ViewFrameLabelLocationType
The relative anchor position of ViewFrameLabelGroup.

Remarks

The labelStyleId and anchorPosition will also be set as the DefaultViewFrameLabelAnchorPosition and DefaultViewFrameLabelStyleId.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when the viewFrameGroupId or labelStyleId is invalid.
System..::..InvalidOperationException Thrown when the ViewFrameGroup already contains one ViewFrameLabelGroup.

See Also