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

Textsize feature differs from textsymbol

$
0
0
Hello,

I want to check the textsize of annotation features against the size in symboldefinitions in an annotation featureclass.
There are several annotation features (created with the existing symbol) in this featureclass.
With following code I read a feature and the symboldefinition from the symbolcollection.

Code:

Dim pAnnoClass As IAnnoClass
Set pAnnoClass = pFeatureClass.Extension
Dim pSymbolCollection As ISymbolCollection2
Set pSymbolCollection = pAnnoClass.symbolCollection
Set pFeatureCursor = pFeatureClass.Update(pFilter, False)
Set pFeature = pFeatureCursor.NextFeature
Dim pSymbolIndent As ISymbolIdentifier2
indexSymbolID = pFeatureClass.Fields.FindField("SymbolId")
pSymbolCollection.GetSymbolIdentifier pFeature.Value(indexSymbolID), pSymbolIndent
Dim pTextSymbol As IFormattedTextSymbol
Set pTextSymbol = pSymbolIndent.Symbol

Debug.Print pTextSymbol.Font.Name, pFeature.Value(IndexFontSize), pTextSymbol.Font.size

Result of the debug.print is: Univers Com 55 14 14.25

As you can see the value of textsize in the feature differs from the size of the textsymbol.

Can someone explain what's happening here?

Greetings, Henk

Viewing all articles
Browse latest Browse all 1374

Trending Articles