laptop and a wrench

Bogue

Text ("B" "C") turns yellow with certain tactical graphic symbols (Chemical Containment Area: GFMPNC--------X; Biological Containment Area symbol: GFMPNB--------X) when UseAffiliation is set to true.

Dernière publication: August 31, 2014 ArcGIS Engine
Numéro d’ID de bogue NIM061176
EnvoiSeptember 16, 2010
Dernière modificationJune 5, 2024
S’applique àArcGIS Engine
Version trouvée9.3.1
Langue du programmeC#
Système d’exploitationWindows OS
Version du système d’exploitationXP
StatutNon-Reproducible

Informations supplémentaires

No Public Explanation

Solution de contournement

Refer to the application attached if necessary.Workaround 1: private ITacticalGraphicStyle getCustomTGStyle() { ITacticalGraphicStyle tacticalGraphicStyle = new TacticalGraphicStyleClass(); tacticalGraphicStyle.StyleOption = moleTGStyleEnum.moleTGStyleText; //If custom colors are also desired, // Set / uncomment: // //tacticalGraphicStyle.StyleOption = moleTGStyleEnum.moleTGStyleAlternates; //tacticalGraphicStyle.FriendlyColor = Converter.ToRGBColor(System.Drawing.Color.FromArgb(0, 100, 255)) as IColor; //tacticalGraphicStyle.HostileColor = Converter.ToRGBColor(System.Drawing.Color.FromArgb(255, 50, 50)) as IColor; //tacticalGraphicStyle.NeutralColor = Converter.ToRGBColor(System.Drawing.Color.FromArgb(0, 100, 30)) as IColor; //tacticalGraphicStyle.UnknownColor = Converter.ToRGBColor(System.Drawing.Color.FromArgb(255, 255, 10)) as IColor; tacticalGraphicStyle.UseFonts = true; //Set font TextSymbol textSymbol = new TextSymbolClass(); textSymbol.Color = Converter.ToRGBColor(Color.Black) as IColor; stdole.IFontDisp f1 = new stdole.StdFontClass() as stdole.IFontDisp; <a href="http://f1.Name" target="_blank">f1.Name</a> = "Arial"; f1.Size = (decimal)12; f1.Bold = true; textSymbol.Font = f1; textSymbol.Size = 12; tacticalGraphicStyle.TextSymbol = textSymbol; return tacticalGraphicStyle; }In the create_graphic() function, add: (the_renderer as ITacticalGraphicRenderer2).Style = getCustomTGStyle();Wordaround 2:In the create_graphic() function, add: ICacheRenderer tgRenderer = new TacticalGraphic2525BRendererClass(); ICacheRendererCollection pCRCPoints = new TacticalGraphicLayerClass(); pCRCPoints.AddRenderer(ref tgRenderer, 0); the_renderer.Style = ((ITacticalGraphicRenderer2)pCRCPoints.Renderer(0)).Style;

Étapes pour reproduire

ID de bogue: NIM061176

Logiciel:

  • ArcGIS Engine

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