Spread Windows Forms 6.0 Product Documentation
CreateStringWithLiterals Method
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : CreateStringWithLiterals Method


originalString
String containing original characters

Glossary Item Box

Creates a string composed of literal characters.

Syntax

Visual Basic (Declaration) 
Public Overridable Function CreateStringWithLiterals( _
   ByVal originalString As String _
) As String
Visual Basic (Usage)Copy Code
Dim instance As SuperEditBase
Dim originalString As String
Dim value As String
 
value = instance.CreateStringWithLiterals(originalString)
C# 
public virtual string CreateStringWithLiterals( 
   string originalString
)

Parameters

originalString
String containing original characters

Return Value

String containing literal characters

Remarks

Use this method to create a string composed of literal characters. You might want to use this method if you are creating a mask. Instead of having to escape out the literals using a backslash character when setting the mask, you can call this method and provide it your string. It returns the string of literal characters to use in your mask.

Example

C#Copy Code
stringd="\\server\\share\\control.txt";
control.CreateStringWithLiterals(d);
Visual BasicCopy Code
DimdAsString="\server\share\control.txt"
control.CreateStringWithLiterals(d)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.