StringExtrasPadString Method |
Truncate or pad a string with spaces to a certain length
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static string PadString(
string instr,
int maxlen
)
Public Shared Function PadString (
instr As String,
maxlen As Integer
) As String
public:
static String^ PadString(
String^ instr,
int maxlen
)
static member PadString :
instr : string *
maxlen : int -> string
Parameters
- instr
- Type: SystemString
- maxlen
- Type: SystemInt32
Return Value
Type:
String
See Also