This document is archived and information here might be outdated. Recommended version. |
Sets the values for the commonly used Force Element properties.
///<summary>Sets the values for the commonly used Force Element properties.</summary> /// ///<param name="symbid">A System.String that is the Symbol_ID. Example: "SFGP-----------"</param> ///<param name="name">A System.String that is the Name. Example: "Unit B"</param> ///<param name="parent">A System.String that is the Parent. Example: "Unit A"</param> ///<param name="comment">A System.String that is the Comment. Example: "Comment"</param> ///<param name="info">A System.String that is the Info. Example: "Info"</param> ///<param name="location">A System.String that is the Location. Example: "GRID COORDS"</param> /// ///<remarks>Pass in strings to create a property set to be used for force element creation.</remarks> public ESRI.ArcGIS.esriSystem.IPropertySet GetForceElementPropertySet(System.String symbid, System.String name, System.String parent, System.String comment, System.String info, System.String location) { ESRI.ArcGIS.esriSystem.IPropertySet propertySet=new ESRI.ArcGIS.esriSystem.PropertySetClass(); propertySet.SetProperty("Symbol_ID", symbid); propertySet.SetProperty("Name", name); propertySet.SetProperty("Parent", parent); propertySet.SetProperty("Comment", comment); propertySet.SetProperty("Info", info); propertySet.SetProperty("Location", location); //// the following properties are not set (but they could be) //propertySet.SetProperty("Strength", "Strength"); //propertySet.SetProperty("EvalRating", "EvalRating"); //propertySet.SetProperty("Alt_Depth", "Alt_Depth"); //propertySet.SetProperty("Speed", "Speed"); //propertySet.SetProperty("DTG", "DTG"); //propertySet.SetProperty("HQ", "HQ"); //propertySet.SetProperty("Quantity", "Quantity"); //propertySet.SetProperty("Type", "Type"); //propertySet.SetProperty("Effective", "Effective"); //propertySet.SetProperty("Signature", "Signature"); //propertySet.SetProperty("IFFSIF", "IFFSIF"); return propertySet; }
'''<summary>Sets the values for the commonly used Force Element properties.</summary> ''' '''<param name="symbid">A System.String that is the Symbol_ID. Example: "SFGP-----------"</param> '''<param name="name">A System.String that is the Name. Example: "Unit B"</param> '''<param name="parent">A System.String that is the Parent. Example: "Unit A"</param> '''<param name="comment">A System.String that is the Comment. Example: "Comment"</param> '''<param name="info">A System.String that is the Info. Example: "Info"</param> '''<param name="location">A System.String that is the Location. Example: "GRID COORDS"</param> ''' '''<remarks>Pass in strings to create a property set to be used for force element creation.</remarks> Public Function GetForceElementPropertySet(ByVal symbid As System.String, ByVal name As System.String, ByVal parent As System.String, ByVal comment As System.String, ByVal info As System.String, ByVal location As System.String) As ESRI.ArcGIS.esriSystem.IPropertySet Dim propertySet As ESRI.ArcGIS.esriSystem.IPropertySet=New ESRI.ArcGIS.esriSystem.PropertySetClass propertySet.SetProperty("Symbol_ID", symbid) propertySet.SetProperty("Name", name) propertySet.SetProperty("Parent", parent) propertySet.SetProperty("Comment", comment) propertySet.SetProperty("Info", info) propertySet.SetProperty("Location", location) '' the following properties are not set (but they could be) ' propertySet.SetProperty("Strength", "Strength"); ' propertySet.SetProperty("EvalRating", "EvalRating"); ' propertySet.SetProperty("Alt_Depth", "Alt_Depth"); ' propertySet.SetProperty("Speed", "Speed"); ' propertySet.SetProperty("DTG", "DTG"); ' propertySet.SetProperty("HQ", "HQ"); ' propertySet.SetProperty("Quantity", "Quantity"); ' propertySet.SetProperty("Type", "Type"); ' propertySet.SetProperty("Effective", "Effective"); ' propertySet.SetProperty("Signature", "Signature"); ' propertySet.SetProperty("IFFSIF", "IFFSIF"); Return propertySet End Function