CopyComponent Method

Copy a component and insert into the slope pattern style.

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

Syntax

C#

public void CopyComponent(
	int index,
	int insertPosition
)

Visual Basic

Public Sub CopyComponent ( _
	index As Integer, _
	insertPosition As Integer _
)

Visual C++

public:
void CopyComponent(
	int index, 
	int insertPosition
)

Parameters

index
Type: System.Int32
The index in the collection.
insertPosition
Type: System.Int32
The position of the new component in relation to existing components.

Remarks

You can use the parameter- insertPosition as a index to get the component in the slope pattern style.

Exceptions

ExceptionCondition
System.ArgumentOutOfRangeException Thrown when the index is out of the collecton range.
System.ArgumentException Thrown when the insertPosition is less than 0 or greater than the component's count.
System.InvalidOperationException Throw when the offset type of component specified by the index is SlopePatternOffsetType::Divide.

See Also