You are here: Start » AVL.NET » AVL.CropProfile(AvlNet.Profile, int, int?, AvlNet.Profile)

AVL.CropProfile(AvlNet.Profile, int, int?, AvlNet.Profile)

Confines a profile to its continuous subsequence.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CropProfile(
	AvlNet.Profile inProfile,
	int inStart,
	int? inLength,
	out AvlNet.Profile outProfile
)

Parameters

inProfile
Type: AvlNet.Profile
Input profile
inStart
Type: System.Int32
Index of the first element of the input profile that will be included in the output profile
inLength
Type: System.Nullable<System.Int32>
Length of the output profile, or null.
outProfile
Type: AvlNet.Profile
Output profile

Description

The operation crops profile to a new size. It removes values from inProfile, except those, which are included between inStart and inStart + inLength indexes.

Remarks

Value of inLength set to Auto means that the operation is performed on all elements starting from inStart till the end of inProfile.

Errors

Error type Description
DomainError Selected index range exceeds the input profile in CropProfile.

See also