當前位置: 首頁>>代碼示例>>C#>>正文


C# Altaxo.CreateArray方法代碼示例

本文整理匯總了C#中Altaxo.CreateArray方法的典型用法代碼示例。如果您正苦於以下問題:C# Altaxo.CreateArray方法的具體用法?C# Altaxo.CreateArray怎麽用?C# Altaxo.CreateArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Altaxo的用法示例。


在下文中一共展示了Altaxo.CreateArray方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Serialize

 public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
 {
   GraphicCollection s = (GraphicCollection)obj;
   
   info.CreateArray("GraphObjects",s.myList.Count);
   for(int i=0;i<s.myList.Count;i++)
     info.AddValue("GraphicsObject",s.myList[i]);
   info.CommitArray();
 }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:9,代碼來源:GraphicCollection.cs

示例2: Serialize

			public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				AdditionalTicks s = (AdditionalTicks)obj;

				info.CreateArray("ByValues", s._additionalTicks.Count);
				foreach (AltaxoVariant v in s._additionalTicks)
					info.AddValue("e", (object)v);
				info.CommitArray();
			}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:9,代碼來源:AdditionalTicks.cs

示例3: Serialize

      public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
      {
        FitEnsemble s = (FitEnsemble)obj;

        info.CreateArray("FitElements",s.Count);
        for(int i=0;i<s.Count;++i)
          info.AddValue("e",s[i]);
        info.CommitArray();
      }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:9,代碼來源:FitEnsemble.cs

示例4: Serialize

			public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				var s = (AsciiDocumentAnalysisOptions)obj;

				// info.AddBaseValueEmbedded(s,typeof(GraphDocument).BaseType);
				// now the data of our class
				info.AddValue("NumberOfLinesToAnalyze", s._numberOfLinesToAnalyze);

				info.CreateArray("NumberFormatsToTest", s._numberFormatsToTest.Count);
				foreach (var cultureInfo in s._numberFormatsToTest)
					info.AddValue("e", cultureInfo.LCID);
				info.CommitArray();

				info.CreateArray("DateTimeFormatsToTest", s._dateTimeFormatsToTest.Count);
				foreach (var cultureInfo in s._dateTimeFormatsToTest)
					info.AddValue("e", cultureInfo.LCID);
				info.CommitArray();
			}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:18,代碼來源:AsciiDocumentAnalysisOptions.cs

示例5: Serialize

      public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
      {
        LinkedScaleCollection s = (LinkedScaleCollection)obj;

        info.CreateArray("Properties", s._linkedScales.Length);
        for (int i = 0; i < s._linkedScales.Length; ++i)
          info.AddValue("e", s._linkedScales[i]);
        info.CommitArray();
      }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:9,代碼來源:LinkedScaleCollection.cs

示例6: Serialize

      public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
      {
        WorksheetLayoutCollection s = (WorksheetLayoutCollection)obj;

        info.CreateArray("TableLayoutArray",s.m_TableLayouts.Count);
        foreach(object style in s.m_TableLayouts.Values)
          info.AddValue("WorksheetLayout",style);
        info.CommitArray();
      }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:9,代碼來源:WorksheetLayoutCollection.cs

示例7: Serialize

		public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
		{
			var s = (System.Collections.Generic.List<object>)obj;
			info.CreateArray("List", s.Count);

			for (int i = 0; i < s.Count; ++i)
				info.AddValue("e", s[i]);

			info.CommitArray();
		}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:10,代碼來源:SystemCollectionsSerialization.cs

示例8: Serialize

			public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				var s = (ClosedCardinalSpline)obj;
				info.AddBaseValueEmbedded(s, typeof(ClosedCardinalSpline).BaseType);
				info.AddValue("Tension", s._tension);
				info.CreateArray("Points", s._curvePoints.Count);
				for (int i = 0; i < s._curvePoints.Count; i++)
					info.AddValue("e", s._curvePoints[i]);
				info.CommitArray();
			}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:10,代碼來源:ClosedCardinalSpline.cs

示例9: Serialize

			public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				var s = (ShapeGroup)obj;
				info.AddBaseValueEmbedded(s, typeof(ShapeGroup).BaseType);

				info.CreateArray("Elements", s._groupedObjects.Count);
				foreach (var e in s._groupedObjects)
					info.AddValue("e", e);
				info.CommitArray();
			}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:10,代碼來源:ShapeGroup.cs

示例10: Serialize

			public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				var s = (RelativeDocumentPath)obj;

				info.AddValue("LevelsDown", s._numberOfLevelsDown);

				info.CreateArray("Path", s._pathParts.Length);
				for (int i = 0; i < s._pathParts.Length; i++)
					info.AddValue("e", s._pathParts[i]);
				info.CommitArray();
			}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:RelativeDocumentPath.cs

示例11: Serialize

			public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				var s = (Custom)obj;
				info.AddValue("DashOffset", s._dashOffset);
				info.CreateArray("Pattern", s._customDashPattern.Length);
				foreach (var v in s._customDashPattern)
					info.AddValue("e", v);
				info.CommitArray();

				SerializeV0(s, info);
			}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:Custom.cs

示例12: Serialize

			public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				var s = (IntersectionOfRowSelections)obj;

				info.CreateArray("RowSelections", s._rowSelections.Count);

				for (int i = 0; i < s._rowSelections.Count; ++i)
					info.AddValue("e", s._rowSelections[i]);

				info.CommitArray();
			}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:11,代碼來源:IntersectionOfRowSelections.cs

示例13: Serialize

			public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				var s = (ColorSetBag)obj;

				info.CreateArray("ColorSets", s._colorSets.Length);

				foreach (var c in s._colorSets)
				{
					info.CreateElement("e");
					info.AddValue("ColorSet", c.Item1);
					info.AddValue("IsPlotColorSet", c.Item2);
					info.CommitElement();
				}

				info.CommitArray();
			}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:16,代碼來源:ColorSetBag.cs

示例14: Serialize

			public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				AscendingIntegerCollection s = (AscendingIntegerCollection)obj;
				int count = s.GetRangeCount();
				info.CreateArray("Ranges", count);
				int currentpos = 0;
				ContiguousIntegerRange range;
				while (s.GetNextRangeAscending(ref currentpos, out range))
				{
					info.CreateElement("e");
					info.AddValue("Start", range.Start);
					info.AddValue("Count", range.Count);
					info.CommitElement();
				}
				info.CommitArray();
			}
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:16,代碼來源:AscendingIntegerCollection.cs

示例15: Serialize

      public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
      {
        GraphDocument s = (GraphDocument)obj;

        // info.AddBaseValueEmbedded(s,typeof(GraphDocument).BaseType);
        // now the data of our class
        info.AddValue("Name",s._name);
        info.AddValue("PageBounds",s._pageBounds);
        info.AddValue("PrintableBounds",s._printableBounds);
        info.AddValue("Layers",s._layers);

        // new in version 1 - Add graph properties
        int numberproperties = s._graphProperties==null ? 0 : s._graphProperties.Keys.Count;
        info.CreateArray("TableProperties",numberproperties);
        if(s._graphProperties!=null)
        {
          foreach(string propkey in s._graphProperties.Keys)
          {
            if(propkey.StartsWith("tmp/"))
              continue;
            info.CreateElement("e");
            info.AddValue("Key",propkey);
            object val = s._graphProperties[propkey];
            info.AddValue("Value",info.IsSerializable(val) ? val : null);
            info.CommitElement();
          }
        }
        info.CommitArray();


      }
開發者ID:xuchuansheng,項目名稱:GenXSource,代碼行數:31,代碼來源:GraphDocument.cs


注:本文中的Altaxo.CreateArray方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。