本文整理汇总了C#中Altaxo.GetNodeContent方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.GetNodeContent方法的具体用法?C# Altaxo.GetNodeContent怎么用?C# Altaxo.GetNodeContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo
的用法示例。
在下文中一共展示了Altaxo.GetNodeContent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
string invariantDescriptionString = info.GetNodeContent();
if (invariantDescriptionString.IndexOf(worldPostfix) < 0)
{
// Exception: some strings prior to 2012-11-01 were serialized with a unit of pt. We must convert them to world units here.
using (var gdiFont = (System.Drawing.Font)_fontConverter.ConvertFromInvariantString(invariantDescriptionString))
{
return new FontX(gdiFont.FontFamily.Name, gdiFont.SizeInPoints, (FontXStyle)gdiFont.Style);
}
}
else
{
return new FontX(invariantDescriptionString);
}
}
示例2: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
string val = info.GetNodeContent();
switch (val)
{
case "NoLine":
return LineConnectionStyles.NoConnection.Instance;
case "Straight":
return LineConnectionStyles.StraightConnection.Instance;
case "Segment2":
return LineConnectionStyles.Segment2Connection.Instance;
case "Segment3":
return LineConnectionStyles.Segment3Connection.Instance;
case "Spline":
return LineConnectionStyles.SplineConnection.Instance;
case "Bezier":
return LineConnectionStyles.BezierConnection.Instance;
case "StepHorz":
return LineConnectionStyles.StepHorizontalConnection.Instance;
case "StepVert":
return LineConnectionStyles.StepVerticalConnection.Instance;
case "StepHorzCenter":
return LineConnectionStyles.StepHorizontalCenteredConnection.Instance;
case "StepVertCenter":
return LineConnectionStyles.StepVerticalCenteredConnection.Instance;
default:
throw new NotImplementedException();
}
}
示例3: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
string val = info.GetNodeContent();
return System.Enum.Parse(typeof(ScaleLinkType), val, true);
}
示例4: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
string val = info.GetNodeContent();
var c = (Color)sm_Converter.ConvertFromInvariantString(val);
return Altaxo.Drawing.NamedColor.FromArgb(c.A, c.R, c.G, c.B);
}
示例5: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
string val = info.GetNodeContent();
return (Font)sm_Converter.ConvertFromInvariantString(val);
}