本文整理汇总了C#中Altaxo.GetNullableEnum方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.GetNullableEnum方法的具体用法?C# Altaxo.GetNullableEnum怎么用?C# Altaxo.GetNullableEnum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo
的用法示例。
在下文中一共展示了Altaxo.GetNullableEnum方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
AxisLabelStyle s = null != o ? (AxisLabelStyle)o : new AxisLabelStyle(info);
s._font = (FontX3D)info.GetValue("Font", s);
s._brush = (IMaterial)info.GetValue("Brush", s);
s.BackgroundStyle = (Background.IBackgroundStyle)info.GetValue("Background", s);
s._automaticRotationShift = info.GetBoolean("AutoAlignment");
s._alignmentX = (Alignment)info.GetEnum("AlignmentX", typeof(Alignment));
s._alignmentY = (Alignment)info.GetEnum("AlignmentY", typeof(Alignment));
s._alignmentZ = (Alignment)info.GetEnum("AlignmentZ", typeof(Alignment));
s._rotationX = info.GetDouble("RotationX");
s._rotationY = info.GetDouble("RotationY");
s._rotationZ = info.GetDouble("RotationZ");
s._offsetX = info.GetDouble("OffsetX");
s._offsetY = info.GetDouble("OffsetY");
s._offsetZ = info.GetDouble("OffsetZ");
s._suppressedLabels = (SuppressedTicks)info.GetValue("SuppressedLabels", s);
if (s._suppressedLabels != null)
s._suppressedLabels.ParentObject = s;
else
s._suppressedLabels = new SuppressedTicks() { ParentObject = s };
s._labelFormatting = (ILabelFormatting)info.GetValue("LabelFormat", s);
s._labelFormatting.ParentObject = s;
s._labelSide = info.GetNullableEnum<CSAxisSide>("LabelSide");
return s;
}
示例2: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
AxisLabelStyle s = null != o ? (AxisLabelStyle)o : new AxisLabelStyle(info);
s._font = (FontX)info.GetValue("Font", s);
s._brush = (BrushX)info.GetValue("Brush", s);
s._brush.ParentObject = s;
s.BackgroundStyle = (IBackgroundStyle)info.GetValue("Background", s);
s._automaticRotationShift = info.GetBoolean("AutoAlignment");
s._horizontalAlignment = (StringAlignment)info.GetEnum("HorzAlignment", typeof(StringAlignment));
s._verticalAlignment = (StringAlignment)info.GetEnum("VertAlignment", typeof(StringAlignment));
s._rotation = info.GetDouble("Rotation");
s._xOffset = info.GetDouble("XOffset");
s._yOffset = info.GetDouble("YOffset");
s._suppressedLabels = (SuppressedTicks)info.GetValue("SuppressedLabels", s);
if (s._suppressedLabels != null)
s._suppressedLabels.ParentObject = s;
else
s._suppressedLabels = new SuppressedTicks() { ParentObject = s };
s._labelFormatting = (ILabelFormatting)info.GetValue("LabelFormat", s);
s._labelFormatting.ParentObject = s;
s._labelSide = info.GetNullableEnum<CSAxisSide>("LabelSide");
// Modification of StringFormat is necessary to avoid
// too big spaces between successive words
s._stringFormat = (StringFormat)StringFormat.GenericTypographic.Clone();
s._stringFormat.FormatFlags |= StringFormatFlags.MeasureTrailingSpaces;
return s;
}
示例3: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
var s = (ScatterPlotStyle)o ?? new ScatterPlotStyle(info);
s._independentSkipFreq = info.GetBoolean("IndependentSkipFreq");
s._skipFreq = info.GetInt32("SkipFreq");
s._ignoreMissingDataPoints = info.GetBoolean("IgnoreMissingDataPoints");
s._independentOnShiftingGroupStyles = info.GetBoolean("IndependentOnShiftingGroupStyles");
s._independentScatterSymbol = info.GetBoolean("IndependentScatterSymbol");
s._scatterSymbol = (IScatterSymbol)info.GetValue("ScatterSymbol", s);
s._independentSymbolSize = info.GetBoolean("IndependentSymbolSize");
s._symbolSize = info.GetSingle("SymbolSize");
s._independentColor = info.GetBoolean("IndependentColor");
s._color = (NamedColor)info.GetValue("Color", s);
s._overrideFrame = info.GetBoolean("OverrideFrame");
s._overriddenFrame = (IScatterSymbolFrame)info.GetValue("OverriddenFrame", s);
s._overrideInset = info.GetBoolean("OverrideInset");
s._overriddenInset = (IScatterSymbolInset)info.GetValue("OverriddenInset", s);
s._overrideStructureWidthOffset = info.GetNullableDouble("OverriddenStructureWidthOffset");
s._overrideStructureWidthFactor = info.GetNullableDouble("OverriddenStructureWidthFactor");
s._overridePlotColorInfluence = info.GetNullableEnum<PlotColorInfluence>("OverriddenPlotColorInfluence");
s._overrideFillColor = (NamedColor?)info.GetValue("OverriddenFillColor", s);
s._overrideFrameColor = (NamedColor?)info.GetValue("OverriddenFrameColor", s);
s._overrideInsetColor = (NamedColor?)info.GetValue("OverriddenInsetColor", s);
return s;
}