本文整理汇总了C#中ESRI.GetProperty方法的典型用法代码示例。如果您正苦于以下问题:C# ESRI.GetProperty方法的具体用法?C# ESRI.GetProperty怎么用?C# ESRI.GetProperty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ESRI
的用法示例。
在下文中一共展示了ESRI.GetProperty方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Alter
public void Alter(ISchematicDiagramClass schematicDiagramClass, ESRI.ArcGIS.esriSystem.IPropertySet propertySet)
{
m_diagramClass = schematicDiagramClass;
try
{
m_description = propertySet.GetProperty("DESCRIPTION").ToString();
}
catch (Exception ex)
{
System.Diagnostics.Trace.WriteLine(ex.Message, "property DESCRIPTION");
}
try
{
m_parentNodeClassName = propertySet.GetProperty("PARENTNODECLASS").ToString();
}
catch (Exception ex)
{
System.Diagnostics.Trace.WriteLine(ex.Message, "property PARENTNODECLASS");
}
try
{
m_targetNodeClassName = propertySet.GetProperty("TARGETNODECLASS").ToString();
}
catch (Exception ex)
{
System.Diagnostics.Trace.WriteLine(ex.Message, "property TARGETNODECLASS");
}
try
{
m_targetLinkClassName = propertySet.GetProperty("TARGETLINKCLASS").ToString();
}
catch (Exception ex)
{
System.Diagnostics.Trace.WriteLine(ex.Message, "property TARGETLINKCLASS");
}
try
{
m_distance = (double)propertySet.GetProperty("DISTANCE");
}
catch (Exception ex)
{
System.Diagnostics.Trace.WriteLine(ex.Message, "property DISTANCE");
}
}
示例2: Alter
public void Alter(ISchematicDiagramClass schematicDiagramClass, ESRI.ArcGIS.esriSystem.IPropertySet propertySet)
{
m_diagramClass = schematicDiagramClass;
try
{
m_description = propertySet.GetProperty("DESCRIPTION").ToString();
}
catch { }
try
{
m_reducedNodeClassName = propertySet.GetProperty("REDUCEDNODECLASS").ToString();
}
catch { }
try
{
m_superspanLinkClassName = propertySet.GetProperty("SUPERSPANLINKCLASS").ToString();
}
catch { }
try
{
m_lengthAttributeName = propertySet.GetProperty("LENGTHATTRIBUTENAME").ToString();
}
catch { }
try
{
m_keepVertices = (bool)propertySet.GetProperty("KEEPVERTICES");
}
catch { }
try
{
m_linkAttribute = (bool)propertySet.GetProperty("LINKATTRIBUTE");
}
catch { }
try
{
m_linkAttributeName = propertySet.GetProperty("LINKATTRIBUTENAME").ToString();
}
catch { }
}