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


C# Altaxo.AddEnum方法代码示例

本文整理汇总了C#中Altaxo.AddEnum方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.AddEnum方法的具体用法?C# Altaxo.AddEnum怎么用?C# Altaxo.AddEnum使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Altaxo的用法示例。


在下文中一共展示了Altaxo.AddEnum方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Serialize

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

				info.AddEnum("DestinationOutput", s._destinationOutput);
				info.AddEnum("DestinationColumnSorting", s._destinationColumnSorting);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:7,代码来源:DecomposeByColumnContent.cs

示例2: Serialize

			public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				VogelFulcherLaw s = (VogelFulcherLaw)obj;
				info.AddEnum("IndependentVariableUnit", s._temperatureUnitOfX);
				info.AddEnum("DependentVariableTransform", s._dependentVariableTransform);
				info.AddEnum("ParamBUnit", s._temperatureUnitOfB);
				info.AddEnum("ParamT0Unit", s._temperatureUnitOfT0);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:8,代码来源:VogelFulcherLaw.cs

示例3: Serialize

 public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
 {
   NumericAxisRescaleConditions s = (NumericAxisRescaleConditions)obj;
   info.AddEnum("OrgRescaling",s._orgRescaling);
   info.AddValue("Org",s._org);  
   info.AddEnum("EndRescaling",s._endRescaling);
   info.AddValue("End",s._end);  
   info.AddEnum("SpanRescaling",s._spanRescaling);
   info.AddValue("Span",s._span);
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:10,代码来源:NumericAxisRescaleConditions.cs

示例4: Serialize

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

				info.AddValue("Material", s._material);
				info.AddValue("CrossSection", s._crossSection);

				info.AddEnum("LineJoin", s._lineJoin);
				info.AddValue("MiterLimit", s._miterLimit);

				if (null != s._lineStartCap)
					info.AddValue("LineStartCap", s._lineStartCap);

				if (null != s._lineEndCap)
					info.AddValue("LineEndCap", s._lineEndCap);

				if (null != s._dashPattern && !DashPatterns.Solid.Instance.Equals(s._dashPattern))
				{
					info.AddValue("DashPattern", s._dashPattern);

					if (null != s._dashStartCap)
					{
						info.AddValue("DashStartCap", s._dashStartCap);
						info.AddValue("DashStartCapSuppression", s._dashStartCapSuppressionIfSpaceInsufficient);
					}
					if (null != s._dashEndCap)
					{
						info.AddValue("DashEndCap", s._dashEndCap);
						info.AddValue("DashEndCapSuppression", s._dashEndCapSuppressionIfSpaceInsufficient);
					}
				}
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:32,代码来源:PenX3D.cs

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

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

示例7: Serialize

			public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
			{
				var s = (ClosedSymbolBase)obj;
				info.AddEnum("PlotColorInfluence", s._plotColorInfluence);
				info.AddValue("StructureScale", s._relativeStructureWidth);
				info.AddValue("Fill", s._fillColor);
				info.AddValue("Frame", s._frame);
				info.AddValue("Inset", s._inset);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:9,代码来源:ClosedSymbolBase.cs

示例8: Serialize

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

				info.AddValue("ImageFormat", s._imageFormat);
				info.AddEnum("PixelFormat", s._pixelFormat);
				info.AddValue("Background", s._backgroundBrush);
				info.AddValue("SourceResolution", s._sourceDpiResolution);
				info.AddValue("DestinationResolution", s._destinationDpiResolution);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:GraphExportOptions.cs

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

示例10: Serialize

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

				info.AddValue("Org", s._axisOrg);
				info.AddValue("End", s._axisEnd);
				info.AddEnum("MajorSpanUnit", s._majorSpan._unit);
				info.AddValue("MajorSpanValue", s._majorSpan._span);
				info.AddValue("MinorTicks", s._minorTicks);
				info.AddValue("Bounds", s._dataBounds);
				info.AddValue("Rescaling", s._rescaling);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:12,代码来源:DateTimeScale.cs

示例11: Serialize

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

				info.AddBaseValueEmbedded(obj, s.GetType().BaseType);

				info.AddValue("RenderDropFile", s._renderDropFile);
				if (s._renderDropFile)
				{
					info.AddValue("DropFileImageFormat", s._renderDropFileImageFormat);
					info.AddEnum("DropFilePixelFormat", s._renderDropFileBitmapPixelFormat);
				}

				info.AddValue("RenderEmbeddedObject", s._renderEmbeddedObject);
				info.AddValue("RenderLinkedObject", s._renderLinkedObject);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:16,代码来源:ClipboardRenderingOptions.cs

示例12: Serialize

      public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo  info)
      {
        MultivariateContentMemento s = (MultivariateContentMemento)obj;
        info.AddValue("TableName",s.TableName); // name of the Table
        info.AddValue("SpectrumIsRow",s.SpectrumIsRow);
        info.AddValue("SpectralIndices",s.SpectralIndices);
        info.AddValue("ConcentrationIndices",s.ConcentrationIndices);
        info.AddValue("MeasurementIndices",s.MeasurementIndices);
        info.AddValue("PreferredNumberOfFactors", s._PreferredNumberOfFactors); // the property columns of that table

        // new in version 1
        info.AddArray("SpectralPreprocessingRegions",s._spectralPreprocessing.Regions,s._spectralPreprocessing.Regions.Length);
        info.AddEnum("SpectralPreprocessingMethod", s._spectralPreprocessing.Method);
        info.AddValue("SpectralPreprocessingDetrending", s._spectralPreprocessing.DetrendingOrder);
        info.AddValue("SpectralPreprocessingEnsembleScale",s._spectralPreprocessing.EnsembleScale);

        // new in version 2
        info.AddValue("ClassNameOfAnalysisClass",s._ClassNameOfAnalysisClass);

      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:20,代码来源:MultivariateContentMemento.cs

示例13: Serialize

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

				int savedStyles = 0; // for test of consistency
				info.CreateArray("Styles", s.Count);

				foreach (System.Type t in s._typeToInstance.Keys)
				{
					if (s._typeToInfo[t].ParentGroupType != null)
						continue;

					info.AddValue("Style", s._typeToInstance[t]);
					info.AddValue("HasChild", null != s._typeToInfo[t].ChildGroupType);
					savedStyles++;

					System.Type childtype = t;
					while (null != (childtype = s._typeToInfo[childtype].ChildGroupType))
					{
						info.AddValue("Style", s._typeToInstance[childtype]);
						info.AddValue("HasChild", null != s._typeToInfo[childtype].ChildGroupType);
						savedStyles++;
					}
				}

				info.CommitArray();

				if (s.Count != savedStyles)
					throw new ApplicationException("Inconsistency in parent-child relationship in this PlotGroupStyleCollection. Please inform the author");

				info.AddEnum("Strictness", s._plotGroupStrictness);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:32,代码来源:PlotGroupStyleCollectionBase.cs

示例14: Serialize

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

        info.AddValue("Width", s._layerWidth);
        info.AddEnum("WidthType", s._layerWidthType);
        info.AddValue("Height", s._layerHeight);
        info.AddEnum("HeightType", s._layerHeightType);
        info.AddValue("Angle", s._layerAngle);
        info.AddValue("Scale", s._layerScale);

        info.AddValue("XPos", s._layerXPosition);
        info.AddEnum("XPosType", s._layerXPositionType);
        info.AddValue("YPos", s._layerYPosition);
        info.AddEnum("YPosType", s._layerYPositionType);
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:16,代码来源:XYPlotLayerPositionAndSize.cs

示例15: Serialize

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

				info.AddEnum("ImportTriggerSource", s._importTriggerSource);
				info.AddValue("ExecuteTableScriptAfterImport", s._executeTableScriptAfterImport);
				info.AddValue("DoNotSaveCachedTableData", s._doNotSaveCachedTableData);
				info.AddValue("MinimumWaitingTimeAfterUpdate", s._minimumWaitingTimeAfterUpdate);
				info.AddValue("MaximumWaitingTimeAfterUpdate", s._maximumWaitingTimeAfterUpdate);
				info.AddValue("MinimumWaitingTimeAfterFirstTrigger", s._minimumWaitingTimeAfterFirstTrigger);
				info.AddValue("MaximumWaitingTimeAfterFirstTrigger", s._maximumWaitingTimeAfterFirstTrigger);
				info.AddValue("MinimumWaitingTimeAfterLastTrigger", s._minimumWaitingTimeAfterLastTrigger);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:13,代码来源:DataSourceImportOptions.cs


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