Mono Class Library: System.String Overview | Members

System.String.PadRight Method

Left-aligns the characters in the current instance, padding on the right with a specified Unicode character, for a specified total number of characters. [Edit]

public string PadRight (int totalWidth, char paddingChar)

Parameters

totalWidth
A int containing the number of characters in the resulting string. [Edit]
paddingChar
A char that specifies the padding character to use. [Edit]

Returns

A new string that is equivalent to the current instance left aligned and padded on the right with as many paddingChar characters as needed to create a length of totalWidth. If totalWidth is less than the length of the current instance, returns a new string that is identical to the current instance. [Edit]

Exceptions

TypeReason
ArgumentExceptiontotalWidth is less than zero. [Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0