Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

How to get The character spacing from a ITextElement arcgis engine 9.3 C#

$
0
0
i have a problem.I can set character spacing to a IElement as ITexElement like :
Code:

TextSymbolClass pTextSymbol = new TextSymbolClass();
pTextSymbol.CharacterSpacing = 10 ; //etc
((ITextElement)firstElement).Symbol= pTextSymbol;
//firstElement is a Element in map

Now i want to get value of CharacterSpacing when i focus to a ITextElement in Map.But when i used this code below, some thing happen and it break from function and have no exception.
Code:

TextSymbolClass pTextSymbol2 = new TextSymbolClass();   
pTextSymbol2 = (TextSymbolClass)((ITextElement)firstElement).Symbol; //break from here   
value=pTextSymbol2.CharacterSpacing ;

So, how can I get the CharacterSpacing value of a Element,can you show me another way to get it.I'm using Arcgis engine 9.3, C# .Thank you so much.

Viewing all articles
Browse latest Browse all 1374

Trending Articles