當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。