当前位置: 首页>>代码示例>>C#>>正文


C# Altaxo.GetEnum方法代码示例

本文整理汇总了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;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:13,代码来源:NumericAxisRescaleConditions.cs

示例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;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:13,代码来源:DateTimeAxisRescaleConditions.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:8,代码来源:ItemLocationDirectAspectPreserving.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:9,代码来源:MultiLineLabelFormattingBase.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:11,代码来源:ClosedSymbolBase.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:12,代码来源:GraphExportOptions.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:13,代码来源:DateTimeLabelFormatting.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:18,代码来源:ClipboardRenderingOptions.cs

示例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);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:20,代码来源:ColorSet.cs

示例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;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:15,代码来源:DensityImagePlotStyle.cs

示例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;
        }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:XYPlotLayer.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:95,代码来源:PenX.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:45,代码来源:VectorCartesicPlotStyle.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:9,代码来源:DecomposeByColumnContent.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:25,代码来源:LinearTickSpacing.cs


注:本文中的Altaxo.GetEnum方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。