Spread Windows Forms 12.0 Product Documentation
GetLeftmostCharacters Method
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : GetLeftmostCharacters Method
Number of characters to return
Gets a specified number of characters, starting with the leftmost character.
Syntax
'Declaration
 
Public Overridable Function GetLeftmostCharacters( _
   ByVal count As Integer _
) As String
'Usage
 
Dim instance As SuperEditBase
Dim count As Integer
Dim value As String
 
value = instance.GetLeftmostCharacters(count)
public virtual string GetLeftmostCharacters( 
   int count
)

Parameters

count
Number of characters to return

Return Value

String with the number of characters designated by the count parameter
Remarks

Use this method to return a specified number of characters, starting from the left. Specify the number of characters to return using the count parameter.

If you want to return a specified number of characters starting from the right, use the GetRightmostCharacters method.

Example
control.Text="Getleftmostcharactertest";
StringStr=control.GetLeftmostCharacters(8);
textBox1.Text=Str;
DimstrAsString
control.Text="Getleftmostcharactertest"
str=control.GetLeftmostCharacters(8)
TextBox1.Text=str
See Also

Reference

SuperEditBase Class
SuperEditBase Members
GetRightmostCharacters Method