/// <summary> /// 속성들을 Xml Attribute로 생성합니다. /// </summary> /// <param name="writer">Attribute를 쓸 Writer</param> public override void GenerateXmlAttributes(System.Xml.XmlWriter writer) { base.GenerateXmlAttributes(writer); if (SeriesName.IsNotWhiteSpace()) { writer.WriteAttributeString("seriesName", SeriesName); } if (Color.HasValue) { writer.WriteAttributeString("color", Color.Value.ToHexString()); } if (Alpha.IsNotWhiteSpace()) { writer.WriteAttributeString("alpha", Alpha); } if (Ratio.IsNotWhiteSpace()) { writer.WriteAttributeString("ratio", Ratio); } if (ShowValues.HasValue) { writer.WriteAttributeString("showValues", ShowValues.GetHashCode().ToString()); } if (Dashed.HasValue) { writer.WriteAttributeString("dashed", Dashed.GetHashCode().ToString()); } if (IncludeInLegend.HasValue) { writer.WriteAttributeString("includeInLegend", IncludeInLegend.GetHashCode().ToString()); } if (RenderAs.HasValue) { writer.WriteAttributeString("renderAs", RenderAs.ToString()); } if (ParentYAxis.HasValue) { writer.WriteAttributeString("parentYAxis", ParentYAxis.ToString()); } if (_anchorAttr != null) { _anchorAttr.GenerateXmlAttributes(writer); } if (_lineAttr != null) { _lineAttr.GenerateXmlAttributes(writer); } }
/// <summary> /// GetHashCode() /// </summary> /// <returns></returns> public override int GetHashCode() => CharsPerLine.GetHashCode() ^ BytesPerLine.GetHashCode() ^ GroupSizeInBytes.GetHashCode() ^ ShowOffset.GetHashCode() ^ OffsetLowerCaseHex.GetHashCode() ^ (int)OffsetFormat ^ StartPosition.GetHashCode() ^ EndPosition.GetHashCode() ^ BasePosition.GetHashCode() ^ UseRelativePositions.GetHashCode() ^ ShowValues.GetHashCode() ^ ValuesLowerCaseHex.GetHashCode() ^ OffsetBitSize.GetHashCode() ^ (int)ValuesFormat ^ ShowAscii.GetHashCode() ^ GetHexColumnTypeArrayHashCode(ColumnOrder);
/// <summary> /// 속성들을 Xml Attribute로 생성합니다. /// </summary> /// <param name="writer">Attribute를 쓸 Writer</param> public override void GenerateXmlAttributes(XmlWriter writer) { base.GenerateXmlAttributes(writer); // NOTE: 자동으로 속성을 XmlAttribute로 생성합니다 (개발 중) // ChartExtensions.WriteChartAttribute((ChartBase)this, writer); if (Id.IsNotWhiteSpace()) { writer.WriteAttributeString("id", Id); } if (Caption.IsNotWhiteSpace()) { writer.WriteAttributeString("caption", Caption); } if (SubCaption.IsNotWhiteSpace()) { writer.WriteAttributeString("subCaption", SubCaption); } if (Animation.HasValue) { writer.WriteAttributeString("animation", Animation.Value.GetHashCode().ToString()); } if (DefaultAnimation.HasValue) { writer.WriteAttributeString("defaultAnimation", DefaultAnimation.Value.GetHashCode().ToString()); } if (Palette.HasValue) { writer.WriteAttributeString("palette", Palette.Value.ToString()); } if (PaletteThemeColor.HasValue) { writer.WriteAttributeString("paletteThemeColor", PaletteThemeColor.Value.ToHexString()); } if (ShowPrintMenuItem.HasValue) { writer.WriteAttributeString("showPrintMenuItem", ShowPrintMenuItem.Value.GetHashCode().ToString()); } if (ShowLabels.HasValue) { writer.WriteAttributeString("showLabels", ShowLabels.Value.GetHashCode().ToString()); } if (ShowShadow.HasValue) { writer.WriteAttributeString("ShowShadow", ShowShadow.GetHashCode().ToString()); } if (ShowValues.HasValue) { writer.WriteAttributeString("ShowValues", ShowValues.GetHashCode().ToString()); } if (RotateValues.HasValue) { writer.WriteAttributeString("RotateValues", RotateValues.GetHashCode().ToString()); } if (_clickURL != null) { _clickURL.GenerateXmlAttributes(writer); } if (_backgroundAttr != null) { _backgroundAttr.GenerateXmlAttributes(writer); } if (_borderAttr != null) { _borderAttr.GenerateXmlAttributes(writer); } if (_cosmeticAttr != null) { _cosmeticAttr.GenerateXmlAttributes(writer); } if (_baseFontAttr != null) { _baseFontAttr.GenerateXmlAttributes(writer); } if (_toolTipAttr != null) { _toolTipAttr.GenerateXmlAttributes(writer); } if (_logoAttr != null) { _logoAttr.GenerateXmlAttributes(writer); } if (_aboutMenuItemAttr != null) { _aboutMenuItemAttr.GenerateXmlAttributes(writer); } if (_exportDataMenuItemAttr != null) { _exportDataMenuItemAttr.GenerateXmlAttributes(writer); } if (_exportAttr != null) { _exportAttr.GenerateXmlAttributes(writer); } if (_legendAttr != null) { _legendAttr.GenerateXmlAttributes(writer); } if (_scrollBarAttr != null) { _scrollBarAttr.GenerateXmlAttributes(writer); } if (_marginAttr != null) { _marginAttr.GenerateXmlAttributes(writer); } if (_numberAttr != null) { _numberAttr.GenerateXmlAttributes(writer); } if (CaptionPadding.HasValue) { writer.WriteAttributeString("CaptionPadding", CaptionPadding.ToString()); } if (XAxisNamePadding.HasValue) { writer.WriteAttributeString("XAxisNamePadding", XAxisNamePadding.ToString()); } if (LabelPadding.HasValue) { writer.WriteAttributeString("LabelPadding", LabelPadding.ToString()); } if (ValuePadding.HasValue) { writer.WriteAttributeString("ValuePadding", ValuePadding.ToString()); } if (CanvasPadding.HasValue) { writer.WriteAttributeString("CanvasPadding", CanvasPadding.ToString()); } if (LegendPadding.HasValue) { writer.WriteAttributeString("LegendPadding", LegendPadding.ToString()); } if (PlotSpacePercent.HasValue) { writer.WriteAttributeString("PlotSpacePercent", PlotSpacePercent.ToString()); } if (_chartMarginAtrr != null) { _chartMarginAtrr.GenerateXmlAttributes(writer); } if (_canvasMarginAttr != null) { _canvasMarginAttr.GenerateXmlAttributes(writer); } }