當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。