ESRI.ArcGIS.ADF.IMS
Character Property
See Also 
ESRI.ArcGIS.ADF.IMS.Display.Symbol Namespace > TrueTypeMarkerSymbol Class : Character Property




Gets or sets the character to display.

Syntax

Visual Basic (Declaration) 
Public Property Character As Char
Visual Basic (Usage)Copy Code
Dim instance As TrueTypeMarkerSymbol
Dim value As Char
 
instance.Character = value
 
value = instance.Character
C# 
public char Character {get; set;}

Example

See the overview of this class for an example of using this property.

Remarks

The Character property specifies which character within the font (specified by the Font property's Name) is used by the TrueTypeMarkerSymbol to display the feature. The Windows Character Map utility may be used to look up available fonts and characters.

This property is required for TrueTypeMarkerSymbol.

The Char value may be generated using any standard .NET method. Some examples (all refer to the same character position within a font):

  • C#:
    • char Char1 = 'A'; // Character literal
    • char Char2 = (char)65; // Cast from integer decimal
    • char Char3 = '\x0041'; // Hexadecimal
    • char Char4 = '\u0041'; // Unicode
  • VB:
    • Dim Char1 as Char = "A"c ' Using "c" to denote Char literal
    • Dim Char2 as Char = ChrW(65) ' Unicode conversion from integer decimal (preferred over Chr)
    • Dim Char2 as Char = Chr(65) ' Converted from integer decimal
    • Dim Char3 as Char = CChar("A") ' Converted from String to Char
    • Dim Char3 as Char = ChrW(Convert.ToInt32("0041", 16)) ' Converted from hexadecimal to Char

Character must be a value between 32 and 65535 in a font's character map; characters 0-31 are nonprintable and cannot be used.

See Also

© 2010 All Rights Reserved.