当前位置: 首页>>代码示例>>C#>>正文


C# ESRI.GetProperty方法代码示例

本文整理汇总了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");
            }

        }
开发者ID:Esri,项目名称:arcobjects-sdk-community-samples,代码行数:49,代码来源:BisectorRule.cs

示例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 { }

        }
开发者ID:Esri,项目名称:arcobjects-sdk-community-samples,代码行数:49,代码来源:NodeReductionRule.cs


注:本文中的ESRI.GetProperty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。