Share

ViewFrameLabelGroup.Create(ObjectId, ObjectId, ViewFrameLabelLocationType) Method

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.8.0.280

Syntax

C#

public static ObjectId Create(
	ObjectId viewFrameGroupId,
	ObjectId labelStyleId,
	ViewFrameLabelLocationType anchorPosition
)

VB

Public Shared Function Create ( 
	viewFrameGroupId As ObjectId,
	labelStyleId As ObjectId,
	anchorPosition As ViewFrameLabelLocationType
) As ObjectId

C++

public:
static ObjectId Create(
	ObjectId viewFrameGroupId, 
	ObjectId labelStyleId, 
	ViewFrameLabelLocationType anchorPosition
)

Parameters

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

Return Value

ObjectId

Exceptions

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

Remarks

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

See Also

Reference

Was this information helpful?