laptop and a wrench

Bogue

The IGraphicProperties.LineSymbol Property code snippet has two mistakes, and may need to address that the IGraphicProperties pointer variable should be declared as class-level.

Dernière publication: August 31, 2014 ArcGIS Engine
Numéro d’ID de bogue NIM069823
EnvoiJune 21, 2011
Dernière modificationJune 5, 2024
S’applique àArcGIS Engine
Version trouvée10.0
Langue du programmeC#
Système d’exploitationWindows OS
Version du système d’exploitationXP
StatutWill Not Be Addressed

Informations supplémentaires

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Solution de contournement

private void MainForm_Load(object sender, EventArgs e){ ... ... ... m_graphicProperties = new CommandsEnvironmentClass(); //EDGAR: but do instantiate in the Load method //Get the IRgbColor interface IRgbColor color = new RgbColorClass(); //Set the color to be red ((Red) + (Green * 256) + (Blue * 256 * 256)) color.RGB = 255; //ILineSymbol pLineSymbol = new SimpleLineSymbolClass(); //either create a new SimpleLineSymbol object, like this ILineSymbol pLineSymbol = m_graphicProperties.LineSymbol; //or just get reference to existing one, like this pLineSymbol.Color = color; //change or assign the color pLineSymbol.Width = 10; //change or assign the width m_graphicProperties.LineSymbol = pLineSymbol; System.Diagnostics.Debug.WriteLine(m_graphicProperties.LineSymbol.Color.RGB.ToString()); //confirm the change System.Diagnostics.Debug.WriteLine(m_graphicProperties.LineSymbol.Width.ToString()); //confirm the change ... ... ...}//end of MainForm_Load

Étapes pour reproduire

ID de bogue: NIM069823

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