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


C# IniFile.GetTitleNumber方法代码示例

本文整理汇总了C#中IniFile.GetTitleNumber方法的典型用法代码示例。如果您正苦于以下问题:C# IniFile.GetTitleNumber方法的具体用法?C# IniFile.GetTitleNumber怎么用?C# IniFile.GetTitleNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IniFile的用法示例。


在下文中一共展示了IniFile.GetTitleNumber方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddFigure

 void AddFigure(IniFile.Section section, IFigure figure)
 {
     Actions.Add(drawing, figure);
     figures[section.GetTitleNumber("Figure")] = figure;
 }
开发者ID:ondrej11,项目名称:o106,代码行数:5,代码来源:DGFReader.cs

示例2: ReadPolygon

 void ReadPolygon(IniFile.Section section)
 {
     var polygon = Factory.CreatePolygon(
         drawing, GetPointList(section));
     Actions.Add(drawing, polygon);
     SetFigureStyle(section, polygon);
     staticGraphics[section.GetTitleNumber("SG")] = polygon;
 }
开发者ID:ondrej11,项目名称:o106,代码行数:8,代码来源:DGFReader.cs

示例3: ReadVector

 void ReadVector(IniFile.Section section)
 {
     var vector = Factory.CreateVector(
         drawing, GetPointList(section));
     Actions.Add(drawing, vector);
     SetFigureStyle(section, vector);
     staticGraphics[section.GetTitleNumber("SG")] = vector;
 }
开发者ID:ondrej11,项目名称:o106,代码行数:8,代码来源:DGFReader.cs

示例4: ReadBezier

 void ReadBezier(IniFile.Section section)
 {
     var bezier = Factory.CreateBezier(
         drawing, GetPointList(section));
     Actions.Add(drawing, bezier);
     SetFigureStyle(section, bezier);
     staticGraphics[section.GetTitleNumber("SG")] = bezier;
 }
开发者ID:ondrej11,项目名称:o106,代码行数:8,代码来源:DGFReader.cs

示例5: ProcessPoint

        void ProcessPoint(IniFile.Section section)
        {
            var type = section.ReadInt("Type");
            var parentFigure = section["ParentFigure"];
            if (!parentFigure.IsEmpty())
            {
                EnsureSectionProcessed("Figure" + parentFigure);
                return;
            }

            if (type == 8)
            {
                FindAndProcessArcWithPoint(section.GetTitleNumber("Point"));
                return;
            }

            if (type == 9)
            {
                FindAndProcessMidPoint(section.GetTitleNumber("Point"));
                return;
            }

            var x = section.ReadDouble("X");
            var y = section.ReadDouble("Y");
            FreePoint point = Factory.CreateFreePoint(drawing, new Point(x, y));

            point.Name = section["Name"];
            SetPointStyle(section, point);
            Actions.Add(drawing, point);
            int pointIndex = section.GetTitleNumber("Point");
            points[pointIndex] = point;
        }
开发者ID:ondrej11,项目名称:o106,代码行数:32,代码来源:DGFReader.cs

示例6: ProcessLabel

 void ProcessLabel(IniFile.Section section)
 {
     var label = Factory.CreateLabel(drawing);
     label.MoveTo(section.ReadDouble("X"), section.ReadDouble("Y"));
     SetLabelStyle(section, label);
     Actions.Add(drawing, label);
     labels[section.GetTitleNumber("Label")] = label;
     string text = section["Caption"].Replace("~~", Environment.NewLine);
     if (section["Charset"] == "0")
     {
         text = text.Replace('І', '²');
     }
     #if !PLAYER
     drawing.ActionManager.SetProperty(label, "Text", text);
     #else
     label.Text = text;
     #endif
 }
开发者ID:ondrej11,项目名称:o106,代码行数:18,代码来源:DGFReader.cs

示例7: ProcessButton

        void ProcessButton(IniFile.Section section)
        {
            int type = section.ReadInt("Type");
            if (type != 0)
            {
                return;
            }

            ShowHideControl button = new ShowHideControl();
            button.Drawing = drawing;
            button.Checkbox.IsChecked = section.ReadBool("InitiallyVisible", false);
            button.AddDependencies(GetPointList(section));
            button.MoveTo(section.ReadDouble("X"), section.ReadDouble("Y"));
            SetButtonStyle(section, button);
            Actions.Add(drawing, button);

            string text = section["Caption"].Replace("~~", Environment.NewLine);
            if (section["Charset"] == "0")
            {
                text = text.Replace('I', '²');
            }

            button.Checkbox.Content = text;

            ReadButtonDependencies(section, button);

            button.UpdateFigureVisibility();
            buttons[section.GetTitleNumber("Button")] = button;
        }
开发者ID:ondrej11,项目名称:o106,代码行数:29,代码来源:DGFReader.cs

示例8: AddLabelFigure

 void AddLabelFigure(IniFile.Section section, IFigure figure)
 {
     //SetLabelStyle(section, figure);
     Actions.Add(drawing, figure);
     figures[section.GetTitleNumber("Figure")] = figure;
 }
开发者ID:ondrej11,项目名称:o106,代码行数:6,代码来源:DGFReader.cs


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