本文整理匯總了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);
}