本文整理汇总了C#中Altaxo.GetEnum方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.GetEnum方法的具体用法?C# Altaxo.GetEnum怎么用?C# Altaxo.GetEnum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo
的用法示例。
在下文中一共展示了Altaxo.GetEnum方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
NumericAxisRescaleConditions s = null!=o ? (NumericAxisRescaleConditions)o : new NumericAxisRescaleConditions();
s._orgRescaling = (BoundaryRescaling)info.GetEnum("OrgRescaling",typeof(BoundaryRescaling));
s._org = (double)info.GetDouble("Org");
s._endRescaling = (BoundaryRescaling)info.GetEnum("EndRescaling",typeof(BoundaryRescaling));
s._end = (double)info.GetDouble("End");
s._spanRescaling = (BoundaryRescaling)info.GetEnum("SpanRescaling",typeof(BoundaryRescaling));
s._span = (double)info.GetDouble("Span");
return s;
}
示例2: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
DateTimeAxisRescaleConditions s = null!=o ? (DateTimeAxisRescaleConditions)o : new DateTimeAxisRescaleConditions();
s._orgRescaling = (BoundaryRescaling)info.GetEnum("OrgRescaling",typeof(BoundaryRescaling));
s._org = info.GetDateTime("Org");
s._endRescaling = (BoundaryRescaling)info.GetEnum("EndRescaling",typeof(BoundaryRescaling));
s._end = info.GetDateTime("End");
s._spanRescaling = (BoundaryRescaling)info.GetEnum("SpanRescaling",typeof(BoundaryRescaling));
s._span = info.GetTimeSpan("Span");
return s;
}
示例3: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = null != o ? (ItemLocationDirectAspectPreserving)o : new ItemLocationDirectAspectPreserving();
s._originalItemSize = (VectorD3D)info.GetValue("OriginalSize", s);
s._aspectPreserving = (AspectRatioPreservingMode)info.GetEnum("AspectPreserving", s._aspectPreserving.GetType());
info.GetBaseValueEmbedded(s, typeof(ItemLocationDirectAspectPreserving).BaseType, parent);
return s;
}
示例4: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = (MultiLineLabelFormattingBase)o;
info.GetBaseValueEmbedded(s, typeof(MultiLineLabelFormattingBase).BaseType, parent);
s._relativeLineSpacing = info.GetDouble("LineSpacing");
s._textBlockAlignment = (Alignment)info.GetEnum("BlockAlignment", typeof(Alignment));
return s;
}
示例5: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = (ClosedSymbolBase)o;
s._plotColorInfluence = (PlotColorInfluence)info.GetEnum("PlotColorInfluence", typeof(PlotColorInfluence));
s._relativeStructureWidth = info.GetDouble("StructureScale");
s._fillColor = (NamedColor)info.GetValue("Fill", null);
s._frame = (IScatterSymbolFrame)info.GetValue("Frame", null);
s._inset = (IScatterSymbolInset)info.GetValue("Inset", null);
return s;
}
示例6: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = null != o ? (GraphExportOptions)o : new GraphExportOptions();
s._imageFormat = (ImageFormat)info.GetValue("ImageFormat", s);
s._pixelFormat = (PixelFormat)info.GetEnum("PixelFormat", typeof(PixelFormat));
s.BackgroundBrush = (BrushX)info.GetValue("Background", s);
s._sourceDpiResolution = info.GetDouble("SourceResolution");
s._destinationDpiResolution = info.GetDouble("DestinationResolution");
return s;
}
示例7: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
DateTimeLabelFormatting s = (DateTimeLabelFormatting)o ?? new DateTimeLabelFormatting();
info.GetBaseValueEmbedded(s, typeof(MultiLineLabelFormattingBase), parent);
s._timeConversion = (DateTimeLabelFormatting.TimeConversion)info.GetEnum("TimeConversion", typeof(DateTimeLabelFormatting.TimeConversion));
s._formatString = info.GetString("FormatString");
s._showAlternateFormattingAtMidnight = info.GetBoolean("ShowAlternateFormattingAtMidnight");
s._showAlternateFormattingAtNoon = info.GetBoolean("ShowAlternateFormattingAtNoon");
s._formatStringAlternate = info.GetString("FormatStringAlternate");
return s;
}
示例8: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = null != o ? (ClipboardRenderingOptions)o : new ClipboardRenderingOptions();
info.GetBaseValueEmbedded(s, s.GetType().BaseType, parent);
s._renderDropFile = info.GetBoolean("RenderDropFile");
if (s._renderDropFile)
{
s._renderDropFileImageFormat = (ImageFormat)info.GetValue("DropFileImageFormat", s);
s._renderDropFileBitmapPixelFormat = (PixelFormat)info.GetEnum("DropFilePixelFormat", typeof(PixelFormat));
}
s._renderEmbeddedObject = info.GetBoolean("RenderEmbeddedObject");
s._renderLinkedObject = info.GetBoolean("RenderLinkedObject");
return s;
}
示例9: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
string colorSetName = info.GetString("Name");
var colorSetLevel = (Altaxo.Main.ItemDefinitionLevel)info.GetEnum("Level", typeof(Altaxo.Main.ItemDefinitionLevel));
var creationDate = info.GetDateTime("CreationDate");
var isPlotColorSet = info.GetBoolean("IsPlotColorSet");
int count = info.OpenArray("Colors");
var colors = new NamedColor[count];
for (int i = 0; i < count; ++i)
{
string name = info.GetStringAttribute("Name");
string cvalue = info.GetString("e");
colors[i] = new NamedColor(AxoColor.FromInvariantString(cvalue), name);
}
info.CloseArray(count);
return new ColorSet(colorSetName, colors);
}
示例10: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
DensityImagePlotStyle s = null!=o ? (DensityImagePlotStyle)o : new DensityImagePlotStyle();
s.m_ScalingStyle = (DensityImagePlotStyle.ScalingStyle)info.GetEnum("ScalingStyle",s.m_ScalingStyle.GetType());
s.m_RangeFrom = info.GetDouble("RangeFrom");
s.m_RangeTo = info.GetDouble("RangeTo");
s.m_ClipToLayer = info.GetBoolean("ClipToLayer");
s.m_ColorBelow = (System.Drawing.Color)info.GetValue("ColorBelow",parent);
s.m_ColorAbove = (System.Drawing.Color)info.GetValue("ColorAbove",parent);
s.m_ColorInvalid = (System.Drawing.Color)info.GetValue("ColorInvalid",parent);
return s;
}
示例11: SDeserialize
protected virtual ScaleStyle SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
ScaleStyle s = null != o ? (ScaleStyle)o : new ScaleStyle();
s.GridStyle = (GridStyle)info.GetValue("Grid", s);
int count = info.OpenArray();
//s._edges = new EdgeType[count];
for (int i = 0; i < count; ++i)
info.GetEnum("e", typeof(EdgeType));
info.CloseArray(count);
count = info.OpenArray();
//s._axisStyles = new XYPlotLayerAxisStyleProperties[count];
for (int i = 0; i < count; ++i)
s._axisStyles.Add((AxisStyle)info.GetValue("e", s));
info.CloseArray(count);
return s;
}
示例12: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
PenX s = null != o ? (PenX)o : new PenX();
s._configuredProperties = (Configured)info.GetInt32("Configured");
Configured cp = s._configuredProperties;
if (0 != (cp & PenX.Configured.PenType))
s._penType = (PenType)info.GetEnum("Type", typeof(PenType));
else
s._penType = PenType.SolidColor;
if (0 != (cp & PenX.Configured.Alignment))
s._alignment = (PenAlignment)info.GetEnum("Alignment", typeof(PenAlignment));
else
s._alignment = PenAlignment.Center;
if (0 != (cp & PenX.Configured.Brush))
s._brush = (BrushX)info.GetValue("Brush", s);
else
s._brush = new BrushX(NamedColors.Black);
s._brush.ParentObject = s;
if (0 != (cp & PenX.Configured.Color))
s._color = (NamedColor)info.GetValue("Color", s);
else
s._color = NamedColors.Black;
if (0 != (cp & PenX.Configured.CompoundArray))
info.GetArray(out s._compoundArray);
else
s._compoundArray = new float[0];
if (info.CurrentElementName == "DashPattern")
{
s._dashPattern = (IDashPattern)info.GetValue("DashPattern", null);
if (!Drawing.DashPatterns.Solid.Instance.Equals(s._dashPattern))
{
if (0 != (cp & PenX.Configured.DashCap))
s._dashCap = (DashCap)info.GetEnum("DashCap", typeof(DashCap));
else
s._dashCap = DashCap.Flat;
}
}
s.SetCachedDashProperties();
if (0 != (cp & PenX.Configured.EndCap))
{
string name = info.GetString("EndCap");
var absSize = info.GetDouble("EndCapAbsSize");
var relSize = info.GetDouble("EndCapRelSize");
s._endCap = LineCapExtension.FromNameAndAbsAndRelSize(name, absSize, relSize);
}
else
s._endCap = LineCapExtension.Flat;
if (0 != (cp & PenX.Configured.LineJoin))
s._lineJoin = (LineJoin)info.GetEnum("LineJoin", typeof(LineJoin));
else
s._lineJoin = LineJoin.Miter;
if (0 != (cp & PenX.Configured.MiterLimit))
s._miterLimit = info.GetSingle("MiterLimit");
else
s._miterLimit = 10;
if (0 != (cp & PenX.Configured.StartCap))
{
string name = info.GetString("StartCap");
var absSize = info.GetDouble("StartCapAbsSize");
var relSize = info.GetDouble("StartCapRelSize");
s._startCap = LineCapExtension.FromNameAndAbsAndRelSize(name, absSize, relSize);
}
else
s._startCap = LineCapExtension.Flat;
if (0 != (cp & PenX.Configured.Transform))
{
float[] el;
info.GetArray(out el);
s._transformation = new Matrix(el[0], el[1], el[2], el[3], el[4], el[5]);
}
else
s._transformation = new Matrix();
if (0 != (cp & PenX.Configured.Width))
s._width = info.GetDouble("Width");
else
s._width = 1;
s.ParentObject = (Main.IDocumentNode)parent;
return s;
}
示例13: SDeserialize
protected virtual VectorCartesicPlotStyle SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
VectorCartesicPlotStyle s = null != o ? (VectorCartesicPlotStyle)o : new VectorCartesicPlotStyle(info);
s._meaningOfValues = (ValueInterpretation)info.GetEnum("MeaningOfValues", typeof(ValueInterpretation));
s._columnX = (IReadableColumnProxy)info.GetValue("ColumnX", s);
if (null != s._columnX) s._columnX.ParentObject = s;
s._columnY = (IReadableColumnProxy)info.GetValue("ColumnY", s);
if (null != s._columnY) s._columnY.ParentObject = s;
s._columnZ = (INumericColumnProxy)info.GetValue("ColumnZ", s);
if (null != s._columnZ) s._columnZ.ParentObject = s;
s._independentSkipFrequency = info.GetBoolean("IndependentSkipFreq");
s._skipFrequency = info.GetInt32("SkipFreq");
s._useManualVectorLength = info.GetBoolean("UseManualVectorLength");
s._vectorLengthOffset = info.GetDouble("VectorLengthOffset");
s._vectorLengthFactor = info.GetDouble("VectorLengthFactor");
s._independentSymbolSize = info.GetBoolean("IndependentSymbolSize");
s._symbolSize = info.GetDouble("SymbolSize");
s.Pen = (PenX3D)info.GetValue("Pen", s);
s._independentColor = info.GetBoolean("IndependentColor");
s._lineWidth1Offset = info.GetDouble("LineWidth1Offset");
s._lineWidth1Factor = info.GetDouble("LineWidth1Factor");
s._lineWidth2Offset = info.GetDouble("LineWidth2Offset");
s._lineWidth2Factor = info.GetDouble("LineWidth2Factor");
s._endCapSizeOffset = info.GetDouble("EndCapSizeOffset");
s._endCapSizeFactor = info.GetDouble("EndCapSizeFactor");
s._useSymbolGap = info.GetBoolean("UseSymbolGap");
s._symbolGapOffset = info.GetDouble("SymbolGapOffset");
s._symbolGapFactor = info.GetDouble("SymbolGapFactor");
s._independentOnShiftingGroupStyles = info.GetBoolean("IndependentOnShiftingGroupStyles");
return s;
}
示例14: SDeserialize
protected virtual DecomposeByColumnContentOptions SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = o as DecomposeByColumnContentOptions ?? new DecomposeByColumnContentOptions();
s._destinationOutput = (OutputFormat)info.GetEnum("DestinationOutput", typeof(OutputFormat));
s._destinationColumnSorting = (OutputSorting)info.GetEnum("DestinationColumnSorting", typeof(OutputSorting));
return s;
}
示例15: SDeserialize
protected virtual LinearTickSpacing SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
LinearTickSpacing s = null != o ? (LinearTickSpacing)o : new LinearTickSpacing();
s._zeroLever = info.GetDouble("ZeroLever");
s._orgGrace = info.GetDouble("MinGrace");
s._endGrace = info.GetDouble("MaxGrace");
s._snapOrgToTick = (BoundaryTickSnapping)info.GetEnum("SnapOrgToTick", typeof(BoundaryTickSnapping));
s._snapEndToTick = (BoundaryTickSnapping)info.GetEnum("SnapEndToTick", typeof(BoundaryTickSnapping));
s._targetNumberOfMajorTicks = info.GetInt32("TargetNumberOfMajorTicks");
s._targetNumberOfMinorTicks = info.GetInt32("TargetNumberOfMinorTicks");
s._userDefinedMajorSpan = info.GetNullableDouble("UserDefinedMajorSpan");
s._userDefinedMinorTicks = info.GetNullableInt32("UserDefinedMinorTicks");
s._transformationOffset = info.GetDouble("TransformationOffset");
s._transformationDivider = info.GetDouble("TransformationDivider");
s._transformationOperationIsMultiply = info.GetBoolean("TransformationIsMultiply");
s.SuppressedMajorTicks = (SuppressedTicks)info.GetValue("SuppressedMajorTicks", s);
s.SuppressedMinorTicks = (SuppressedTicks)info.GetValue("SuppressedMinorTicks", s);
s.AdditionalMajorTicks = (AdditionalTicks)info.GetValue("AdditionalMajorTicks", s);
s.AdditionalMinorTicks = (AdditionalTicks)info.GetValue("AdditionalMinorTicks", s);
return s;
}