本文整理汇总了C#中Altaxo.CommitArray方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.CommitArray方法的具体用法?C# Altaxo.CommitArray怎么用?C# Altaxo.CommitArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo
的用法示例。
在下文中一共展示了Altaxo.CommitArray方法的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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}