本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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
}
示例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;
}
示例8: AddLabelFigure
void AddLabelFigure(IniFile.Section section, IFigure figure)
{
//SetLabelStyle(section, figure);
Actions.Add(drawing, figure);
figures[section.GetTitleNumber("Figure")] = figure;
}