[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Length.ToString

ToString Method

ToString()

Converts the value of this instance to its equivalent string representation.

Declaration
public override string ToString()
Returns
Type Description
string

A string value indicating the current Length instance.

Overrides
Examples
var length = new Length("1in");
string result = length.ToString(); // "1in"

ToString(IFormatProvider)

Converts the value of this instance to its equivalent string representation using the specified format.

Declaration
public string ToString(IFormatProvider provider)
Parameters
Type Name Description
IFormatProvider provider

An IFormatProvider object supplying the culture-specific formatting information.

Returns
Type Description
string

A string value indicating the current Length instance.

Examples
var length = new Length("1in");
string result = length.ToString(CultureInfo.InvariantCulture); // "1in"