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


C# Altaxo.GetNodeContent方法代码示例

本文整理汇总了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);
				}
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:16,代码来源:FontX.cs

示例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();
				}
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:39,代码来源:LinePlotStyle.cs

示例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);
    }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:6,代码来源:ScaleLinkType.cs

示例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);
		}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:6,代码来源:SystemDrawingSerialization.cs

示例5: Deserialize

 public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
 {
   
   string val = info.GetNodeContent();
   return (Font)sm_Converter.ConvertFromInvariantString(val);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:6,代码来源:SystemDrawingSerialization.cs


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