laptop and a wrench

Erro

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.

Última Publicação: August 31, 2014 ArcGIS Engine
Número de ID do Erro NIM069823
EnviadoJune 21, 2011
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Engine
Versão encontrada10.0
Idioma do programaC#
Sistema OperacionalWindows OS
Versão do Sistema OperacionalXP
StatusWill Not Be Addressed

Informações Adicionais

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.

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: NIM069823

Software:

  • ArcGIS Engine

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download