Skip to content

M_CommandLine_Text_TextWrapper_LeftString

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

TextWrapper.LeftString Method

Return the left part of a string in a way that compensates for Substring's deficiencies

Namespace: CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

private static string LeftString(
	string str,
	int n
)

VB

Private Shared Function LeftString ( 
	str As String,
	n As Integer
) As String

C++

private:
static String^ LeftString(
	String^ str, 
	int n
)

F#

private static member LeftString : 
        str : string * 
        n : int -> string 

Parameters

 

str
Type: System.String
n
Type: System.Int32

Return Value

Type: String

See Also

Reference

TextWrapper Class
CommandLine.Text Namespace

Clone this wiki locally