Click or drag to resize

RangeExtensionsWithLength Method

Creates a new range starting at the same position as the specified range and a new length.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Range<int> WithLength(
	this Range<int> range,
	int length
)

Parameters

range
Type: Eto.FormsRangeInt32
Range with the same start but different length of the specified range.
length
Type: SystemInt32
Length of the new range.

Return Value

Type: RangeInt32
The length for the new range.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RangeInt32. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also