laptop and a wrench

Bogue

Text size of labels on ForceElements is not consistent.

Dernière publication: December 8, 2014 ArcGIS for Desktop
Numéro d’ID de bogue NIM038484
EnvoiSeptember 15, 2008
Dernière modificationApril 2, 2025
S’applique àArcGIS for Desktop
Version trouvée9.3
Langue du programmeC#
Version de correction10
StatutFixed

Solution de contournement

It is possible to temporarily work around this problem by setting the text size explicitly in the ForceElement Render, using the code: IForceElementRenderer forceElementRenderer = (IForceElementRenderer)renderer; IFEGraphicStyle feGraphicStyle = forceElementRenderer.Style; ITextSymbol textSymbol = feGraphicStyle.TextSymbol; textSymbol.Size = Convert.ToDouble(m_TextHeight);And then calling a display list refresh using the code: ((IDisplayList)m_forceElementLayerFriendly.DisplayList).Refresh(display, null); axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, (ILayer)m_forceElementLayerFriendly, axMapControl1.ActiveView.Extent);To run the workaround:1. Press 'Work around label issue.'2. Observe that the text height is consistent (though it is too small to be readable)

Étapes pour reproduire

ID de bogue: NIM038484

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement