This document is archived and information here might be outdated.  Recommended version.


Get Tactical Graphic Property Set Snippet (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference

Get Tactical Graphic Property Set Snippet

Sets the values for the commonly used Tactical Graphic properties.

[C#]
///<summary>Sets the values for the commonly used Tactical Graphic properties.</summary>
///  
///<param name="name">A System.String that is the Name. Example: "PHASE LINE ALPHA"</param>
///<param name="symbid">A System.String that is the Symbol_ID. Example: "GFGPGLP-------X"</param>
///<param name="info">A System.String that is the Info. Example: "INFO"</param>
///<param name="dtg">A System.String that is the DTG1. Example: "DTG"</param>
///<param name="eType">A System.String that is the EType. Example: "TYPE"</param>
///   
///<returns>An IPropertySet interface for tactical graphics.</returns>
///   
///<remarks>Pass strings to create a property set to be used for tactical graphic creation.</remarks>
public ESRI.ArcGIS.esriSystem.IPropertySet GetTacticalGraphicPropertySet(System.String name, System.String symbid, System.String info, System.String dtg, System.String eType)
{
  ESRI.ArcGIS.esriSystem.IPropertySet propertySet=new ESRI.ArcGIS.esriSystem.PropertySetClass();

  propertySet.SetProperty("Name", name);
  propertySet.SetProperty("Symbol_ID", symbid);
  propertySet.SetProperty("Info", info);
  propertySet.SetProperty("DTG", dtg);
  propertySet.SetProperty("Name1", name);
  propertySet.SetProperty("DTG1", dtg);
  propertySet.SetProperty("Info1", info);
  propertySet.SetProperty("EType", eType);

  return propertySet;
}
[Visual Basic .NET]
'''<summary>Sets the values for the commonly used Tactical Graphic properties.</summary>
'''  
'''<param name="name">A System.String that is the Name. Example: "PHASE LINE ALPHA"</param>
'''<param name="symbid">A System.String that is the Symbol_ID. Example: "GFGPGLP-------X"</param>
'''<param name="info">A System.String that is the Info. Example: "INFO"</param>
'''<param name="dtg">A System.String that is the DTG1. Example: "DTG"</param>
'''<param name="eType">A System.String that is the EType. Example: "TYPE"</param>
'''   
'''<returns>An IPropertySet interface for tactical graphics.</returns>
'''   
'''<remarks>Pass strings to create a property set to be used for tactical graphic creation.</remarks>
Public Function GetTacticalGraphicPropertySet(ByVal name As System.String, ByVal symbid As System.String, ByVal info As System.String, ByVal dtg As System.String, ByVal eType As System.String) As ESRI.ArcGIS.esriSystem.IPropertySet

  Dim propertySet As ESRI.ArcGIS.esriSystem.IPropertySet=New ESRI.ArcGIS.esriSystem.PropertySetClass
  propertySet.SetProperty("Name", name)
  propertySet.SetProperty("Symbol_ID", symbid)
  propertySet.SetProperty("Info", info)
  propertySet.SetProperty("DTG", dtg)
  propertySet.SetProperty("Name1", name)
  propertySet.SetProperty("DTG1", dtg)
  propertySet.SetProperty("Info1", info)
  propertySet.SetProperty("EType", eType)

  Return propertySet

End Function

Additional Requirements
  • The code in this document requires the following References added to the Visual Studio project:
  • ESRI.ArcGIS.DefenseSolutions
  • ESRI.ArcGIS.System