• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IPropertyValue类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IPropertyValue的典型用法代码示例。如果您正苦于以下问题:C# IPropertyValue类的具体用法?C# IPropertyValue怎么用?C# IPropertyValue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IPropertyValue类属于命名空间,在下文中一共展示了IPropertyValue类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _sbsmBoundary.Add((IfcShell) value.EntityVal);
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcShellBasedSurfaceModel.cs


示例2: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _position = (IfcAxis2Placement3D) value.EntityVal;
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcElementarySurface.cs


示例3: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
             base.IfcParse(propIndex, value);
             break;
         case 8:
             _topFlangeWidth = value.RealVal;
             break;
         case 9:
             _topFlangeThickness = value.RealVal;
             break;
         case 10:
             _topFlangeFilletRadius = value.RealVal;
             break;
         case 11:
             _centreOfGravityInY = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:30,代码来源:IfcAsymmetricIShapeProfileDef.cs


示例4: IfcParse

        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            if (propIndex == 0 && value.Type == IfcParserType.Real) //we have a 2x2 colour with no name
            {
                _name = ifc2x2Colour;
            }
            if (_name == ifc2x2Colour) propIndex++; //move all indices along 

            switch (propIndex)
            {
                case 0:    
                    base.IfcParse(propIndex, value);
                    break;
                case 1:
                    _red = value.RealVal;
                    break;
                case 2:
                    _green = value.RealVal;
                    break;
                case 3:
                    _blue = value.RealVal;
                    break;
                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
开发者ID:bnaand,项目名称:xBim-Toolkit,代码行数:26,代码来源:IfcColourRgb.cs


示例5: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
         case 9:
         case 10:
             base.IfcParse(propIndex, value);
             break;
         case 11:
             _projectedOrTrue =
                 (IfcProjectedOrTrueLengthEnum)
                 Enum.Parse(typeof (IfcProjectedOrTrueLengthEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:26,代码来源:IfcStructuralLinearAction.cs


示例6: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _outer = (IfcClosedShell) value.EntityVal;
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcManifoldSolidBrep.cs


示例7: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _edgeList.Add((IfcOrientedEdge) value.EntityVal);
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcEdgeLoop.cs


示例8: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
             base.IfcParse(propIndex, value);
             break;
         case 7:
             _predefinedType =
                 (IfcStructuralSurfaceTypeEnum)
                 Enum.Parse(typeof (IfcStructuralSurfaceTypeEnum), value.EnumVal, true);
             break;
         case 8:
             _thickness = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:25,代码来源:IfcStructuralSurfaceMember.cs


示例9: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             _subContractor = (IfcActorSelect) value.EntityVal;
             break;
         case 10:
             _jobDescription = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:25,代码来源:IfcSubContractResource.cs


示例10: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             if (_suppliers == null)
                 _suppliers = new XbimSet<IfcActorSelect>(this);
             _suppliers.Add((IfcActorSelect)value.EntityVal);
             break;
         case 10:
             _usageRatio = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:bnaand,项目名称:xBim-Toolkit,代码行数:27,代码来源:IfcConstructionMaterialResource.cs


示例11: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             _destabilizingLoad = value.BooleanVal;
             break;
         case 10:
             _causedBy = (IfcStructuralReaction) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:25,代码来源:IfcStructuralAction.cs


示例12: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
             base.IfcParse(propIndex, value);
             break;
         case 7:
             _benchmark = (IfcBenchmarkEnum) Enum.Parse(typeof (IfcBenchmarkEnum), value.EnumVal);
             break;
         case 8:
             _valueSource = value.StringVal;
             break;
         case 9:
             _dataValue = (IfcMetricValueSelect) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:26,代码来源:IfcMetric.cs


示例13: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0)
         _contents.Add((IfcDraughtingCalloutElement) value.EntityVal);
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:7,代码来源:IfcDraughtingCallOut.cs


示例14: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
             base.IfcParse(propIndex, value);
             break;
         case 8:
             _assemblyPlace = (IfcAssemblyPlaceEnum)
                 Enum.Parse(typeof(IfcAssemblyPlaceEnum), value.EnumVal, true);
             break;
         case 9:
             _predefinedType = (IfcElementAssemblyTypeEnum)
                 Enum.Parse(typeof(IfcElementAssemblyTypeEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:26,代码来源:IfcElementAssembly.cs


示例15: IfcParse

        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 7:
                    base.IfcParse(propIndex, value);
                    break;
                case 8:
                    _predefinedType = (IfcPileTypeEnum) Enum.Parse(typeof (IfcPileTypeEnum), value.EnumVal, true);
                    break;
                case 9:
                    _constructionType =
                        (IfcPileConstructionEnum) Enum.Parse(typeof (IfcPileConstructionEnum), value.EnumVal, true);
                    break;

                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:26,代码来源:IfcPile.cs


示例16: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
             base.IfcParse(propIndex, value);
             break;
         case 8:
             _distributionPointFunction =
                 (IfcElectricDistributionPointFunctionEnum)
                 Enum.Parse(typeof (IfcElectricDistributionPointFunctionEnum), value.EnumVal, true);
             break;
         case 9:
             _userDefinedFunction = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:26,代码来源:IfcElectricDistributionPoint.cs


示例17: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             _Width = value.RealVal;
             break;
         case 10:
             _Height = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:25,代码来源:IfcChamferEdgeFeature.cs


示例18: Construct

        public IPropertyValue Construct(CssProperty[] properties)
        {
            var valueList = new List<List<CssToken>>[properties.Length];
            var dummies = new CssProperty[properties.Length];
            var max = 0;

            for (var i = 0; i < properties.Length; i++)
            {
                var value = properties[i].DeclaredValue;
                valueList[i] = value != null ? value.Original.ToList() : new List<List<CssToken>>();
                dummies[i] = Factory.Properties.CreateLonghand(properties[i].Name);
                max = Math.Max(max, valueList[i].Count);
            }

            var values = new IPropertyValue[max];

            for (var i = 0; i < max; i++)
            {
                for (var j = 0; j < dummies.Length; j++)
                {
                    var list = valueList[j];
                    var tokens = list.Count > i ? list[i] : Enumerable.Empty<CssToken>();
                    dummies[j].TrySetValue(new CssValue(tokens));
                }

                var converter = (i < max - 1) ? _listConverter : _endConverter;
                values[i] = converter.Construct(dummies);
            }

            return new ListValue(values, Enumerable.Empty<CssToken>());
        }
开发者ID:Wojdav,项目名称:AngleSharp,代码行数:31,代码来源:EndListValueConverter.cs


示例19: IfcParse

 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     if (propIndex == 0) base.IfcParse(propIndex, value);
     else if (propIndex == 1)
         _axis = (IfcDirection) value.EntityVal;
     else
         this.HandleUnexpectedAttribute(propIndex, value);
 }
开发者ID:Artoymyp,项目名称:XbimEssentials,代码行数:8,代码来源:IfcAxis1Placement.cs


示例20: PeriodicValue

 public PeriodicValue(IPropertyValue[] options, IEnumerable<CssToken> tokens, String[] labels)
 {
     _top = options[0];
     _right = options[1] ?? _top;
     _bottom = options[2] ?? _top;
     _left = options[3] ?? _right;
     _original = new CssValue(tokens);
     _labels = labels;
 }
开发者ID:fjwuyongzhi,项目名称:AngleSharp,代码行数:9,代码来源:PeriodicValueConverter.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IProtectionService类代码示例发布时间:2022-05-24
下一篇:
C# IPropertyValidator类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap