本文整理汇总了C#中Altaxo.AddBaseValueEmbedded方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.AddBaseValueEmbedded方法的具体用法?C# Altaxo.AddBaseValueEmbedded怎么用?C# Altaxo.AddBaseValueEmbedded使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo
的用法示例。
在下文中一共展示了Altaxo.AddBaseValueEmbedded方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (MultiLineLabelFormattingBase)obj;
info.AddBaseValueEmbedded(s, typeof(MultiLineLabelFormattingBase).BaseType);
info.AddValue("LineSpacing", s._relativeLineSpacing);
info.AddEnum("BlockAlignment", s._textBlockAlignment);
}
示例2: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
NumericLabelFormattingBase s = (NumericLabelFormattingBase)obj;
info.AddBaseValueEmbedded(s,typeof(LabelFormattingBase));
info.AddValue("DecimalPlaces",s._decimalPlaces);
}
示例3: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (VisibleLightSpectrum)obj;
info.AddBaseValueEmbedded(s, typeof(ColorProviderBase));
info.AddValue("Gamma", s._gamma);
info.AddValue("Brightness", s._brightness);
}
示例4: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
OpenPathShapeBase s = (OpenPathShapeBase)obj;
info.AddBaseValueEmbedded(s, typeof(OpenPathShapeBase).BaseType);
info.AddValue("LinePen", s._linePen);
}
示例5: Serialize
public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (ItemLocationDirectAspectPreserving)obj;
info.AddValue("OriginalSize", s._originalItemSize);
info.AddEnum("AspectPreserving", s._aspectPreserving);
info.AddBaseValueEmbedded(obj, typeof(ItemLocationDirectAspectPreserving).BaseType);
}
示例6: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
NumericLabelFormattingAuto s = (NumericLabelFormattingAuto)obj;
info.AddBaseValueEmbedded(s,typeof(NumericLabelFormattingBase));
}
示例7: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
RegularPolygon s = (RegularPolygon)obj;
info.AddBaseValueEmbedded(s, typeof(RegularPolygon).BaseType);
info.AddValue("NumberOfVertices", s._vertices);
info.AddValue("CornerRadius", s._cornerRadius);
}
示例8: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
PlotGroupStyleCollection s = (PlotGroupStyleCollection)obj;
info.AddBaseValueEmbedded(obj, obj.GetType().BaseType);
info.AddValue("TransformingStyle", s._coordinateTransformingStyle);
}
示例9: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (RandomCircles)obj;
info.AddBaseValueEmbedded(obj, s.GetType().BaseType);
info.AddValue("RandomSeed", s._randomSeed);
info.AddValue("CircleDiameter", s._circleDiameterPt);
info.AddValue("FillingFactor", s._fillingFactor);
}
示例10: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
SimpleTextGraphic s = (SimpleTextGraphic)obj;
info.AddBaseValueEmbedded(s, typeof(SimpleTextGraphic).BaseType);
info.AddValue("Text", s._text);
info.AddValue("Font", s._font);
info.AddValue("Color", s._color);
}
示例11: 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();
}
示例12: 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();
}
示例13: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
DateTimeLabelFormatting s = (DateTimeLabelFormatting)obj;
info.AddBaseValueEmbedded(s, typeof(MultiLineLabelFormattingBase));
info.AddEnum("TimeConversion", s._timeConversion);
info.AddValue("FormatString", s._formatString);
info.AddValue("ShowAlternateFormattingAtMidnight", s._showAlternateFormattingAtMidnight);
info.AddValue("ShowAlternateFormattingAtNoon", s._showAlternateFormattingAtNoon);
info.AddValue("FormatStringAlternate", s._formatStringAlternate);
}
示例14: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
var s = (TextGraphic)obj;
info.AddBaseValueEmbedded(s, typeof(TextGraphic).BaseType);
info.AddValue("Text", s._text);
info.AddValue("Font", s._font);
info.AddValue("Brush", s._textBrush);
info.AddValue("BackgroundStyle", s._background);
info.AddValue("LineSpacing", s._lineSpacingFactor);
}
示例15: Serialize
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
{
Altaxo.Data.DateTimeColumn s = (Altaxo.Data.DateTimeColumn)obj;
// serialize the base class
info.AddBaseValueEmbedded(s, typeof(Altaxo.Data.DataColumn));
if (null == info.GetProperty("Altaxo.Data.DataColumn.SaveAsTemplate"))
info.AddArray("Data", s._data, s._count);
else
info.AddArray("Data", s._data, 0);
}