当前位置: 首页>>代码示例>>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;未经允许,请勿转载。