當前位置: 首頁>>代碼示例>>C#>>正文


C# Altaxo.AddNullableEnum方法代碼示例

本文整理匯總了C#中Altaxo.AddNullableEnum方法的典型用法代碼示例。如果您正苦於以下問題:C# Altaxo.AddNullableEnum方法的具體用法?C# Altaxo.AddNullableEnum怎麽用?C# Altaxo.AddNullableEnum使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Altaxo的用法示例。


在下文中一共展示了Altaxo.AddNullableEnum方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Serialize

            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                AxisLabelStyle s = (AxisLabelStyle)obj;
                info.AddValue("Font", s._font);
                info.AddValue("Brush", s._brush);
                info.AddValue("Background", s._backgroundStyle);

                info.AddValue("AutoAlignment", s._automaticRotationShift);
                info.AddEnum("AlignmentX", s._alignmentX);
                info.AddEnum("AlignmentY", s._alignmentY);
                info.AddEnum("AlignmentZ", s._alignmentY);

                info.AddValue("RotationX", s._rotationX);
                info.AddValue("RotationY", s._rotationY);
                info.AddValue("RotationZ", s._rotationZ);

                info.AddValue("OffsetX", s._offsetX);
                info.AddValue("OffsetY", s._offsetY);
                info.AddValue("OffsetZ", s._offsetZ);

                if (s._suppressedLabels.IsEmpty)
                    info.AddValue("SuppressedLabels", (object)null);
                else
                    info.AddValue("SuppressedLabels", s._suppressedLabels);

                info.AddValue("LabelFormat", s._labelFormatting);

                info.AddNullableEnum("LabelSide", s._labelSide);
            }
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:29,代碼來源:AxisLabelStyle.cs

示例2: Serialize

            // 2012-05-28 _prefixText and _postfixText deprecated and moved to LabelFormattingBase

            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                AxisLabelStyle s = (AxisLabelStyle)obj;
                info.AddValue("Font", s._font);
                info.AddValue("Brush", s._brush);
                info.AddValue("Background", s._backgroundStyle);

                info.AddValue("AutoAlignment", s._automaticRotationShift);
                info.AddEnum("HorzAlignment", s._horizontalAlignment);
                info.AddEnum("VertAlignment", s._verticalAlignment);

                info.AddValue("Rotation", s._rotation);
                info.AddValue("XOffset", s._xOffset);
                info.AddValue("YOffset", s._yOffset);

                if (s._suppressedLabels.IsEmpty)
                    info.AddValue("SuppressedLabels", (object)null);
                else
                    info.AddValue("SuppressedLabels", s._suppressedLabels);

                info.AddValue("LabelFormat", s._labelFormatting);

                info.AddNullableEnum("LabelSide", s._labelSide);
            }
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:26,代碼來源:AxisLabelStyle.cs

示例3: Serialize

            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                var s = (ScatterPlotStyle)obj;

                info.AddValue("IndependentSkipFreq", s._independentSkipFreq);
                info.AddValue("SkipFreq", s._skipFreq);
                info.AddValue("IgnoreMissingDataPoints", s._ignoreMissingDataPoints);
                info.AddValue("IndependentOnShiftingGroupStyles", s._independentOnShiftingGroupStyles);

                info.AddValue("IndependentScatterSymbol", s._independentScatterSymbol);
                info.AddValue("ScatterSymbol", s._scatterSymbol);
                info.AddValue("IndependentSymbolSize", s._independentSymbolSize);
                info.AddValue("SymbolSize", s._symbolSize);

                info.AddValue("IndependentColor", s._independentColor);
                info.AddValue("Color", s._color);

                info.AddValue("OverrideFrame", s._overrideFrame);
                info.AddValue("OverriddenFrame", s._overriddenFrame);
                info.AddValue("OverrideInset", s._overrideInset);
                info.AddValue("OverriddenInset", s._overriddenInset);
                info.AddValue("OverriddenStructureWidthOffset", s._overrideStructureWidthOffset);
                info.AddValue("OverriddenStructureWidthFactor", s._overrideStructureWidthFactor);
                info.AddNullableEnum("OverriddenPlotColorInfluence", s._overridePlotColorInfluence);
                info.AddValue("OverriddenFillColor", s._overrideFillColor);
                info.AddValue("OverriddenFrameColor", s._overrideFrameColor);
                info.AddValue("OverriddenInsetColor", s._overrideInsetColor);
            }
開發者ID:Altaxo,項目名稱:Altaxo,代碼行數:28,代碼來源:ScatterPlotStyle_Serialization.cs


注:本文中的Altaxo.AddNullableEnum方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。