Explicit Type Conversion Operator (Length)
Converts a
Length instance to its string representation.
'Declaration
Public Operator Narrowing CType( _
ByVal As Length _
) As String
Parameters
- unit
- A Length value to convert.
Return Value
A
System.String value indicating the
Length.
var length = new Length("1in");
string lengthString = (string)length; // "1in"