RangeExtensions.WithLength 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
Syntaxpublic static Range<int> WithLength(
this Range<int> range,
int length
)
<ExtensionAttribute>
Public Shared Function WithLength (
range As Range(Of Integer),
length As Integer
) As Range(Of Integer)
[<ExtensionAttribute>]
static member WithLength :
range : Range<int> *
length : int -> Range<int>
Parameters
- range
- Type: Eto.Forms.Range<Int32>
Range with the same start but different length of the specified range. - length
- Type: System.Int32
Length of the new range.
Return Value
Type:
Range<Int32>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
Range<Int32>. 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