laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: August 31, 2014 ArcGIS Engine
Bug-ID-Nummer NIM069823
EingereichtJune 21, 2011
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Engine
Gefunden in Version10.0
ProgrammspracheC#
BetriebssystemWindows OS
BetriebssystemversionXP
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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

Schritte zur Reproduzierung

Bug-ID: NIM069823

Software:

  • ArcGIS Engine

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln