public object Clone() { var res = new AxisStyle(); res.CopyFrom(this); return(res); }
public void CopyWithoutIdFrom(AxisStyle from) { TickSpacing = from._customTickSpacing == null ? null : (TickSpacing)from._customTickSpacing.Clone(); AxisLineStyle = from._axisLineStyle == null ? null : (AxisLineStyle)from._axisLineStyle.Clone(); MajorLabelStyle = from._majorLabelStyle == null ? null : (AxisLabelStyle)from._majorLabelStyle.Clone(); MinorLabelStyle = from._minorLabelStyle == null ? null : (AxisLabelStyle)from._minorLabelStyle.Clone(); Title = from._axisTitle == null ? null : (TextGraphic)from._axisTitle.Clone(); }
protected virtual AxisStyle SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { AxisStyle s = null != o ? (AxisStyle)o : new AxisStyle(); // Styles s._styleID = (CSLineID)info.GetValue("StyleID", s); s.TickSpacing = (TickSpacing)info.GetValue("TickSpacing", s); s.AxisLineStyle = (AxisLineStyle)info.GetValue("AxisStyle", s); s.MajorLabelStyle = (AxisLabelStyle)info.GetValue("MajorLabelStyle", s); s.MinorLabelStyle = (AxisLabelStyle)info.GetValue("MinorLabelStyle", s); s.Title = (TextGraphic)info.GetValue("AxisTitle", s); return(s); }
public object Clone() { AxisStyle res = new AxisStyle(); res.CopyFrom(this); return res; }
public void CopyWithoutIdFrom(AxisStyle from) { this.TickSpacing = from._customTickSpacing == null ? null : (TickSpacing)from._customTickSpacing.Clone(); this.AxisLineStyle = from._axisLineStyle == null ? null : (AxisLineStyle)from._axisLineStyle.Clone(); this.MajorLabelStyle = from._majorLabelStyle == null ? null : (AxisLabelStyle)from._majorLabelStyle.Clone(); this.MinorLabelStyle = from._minorLabelStyle == null ? null : (AxisLabelStyle)from._minorLabelStyle.Clone(); this.Title = from._axisTitle == null ? null : (TextGraphic)from._axisTitle.Clone(); }
private IMVCANController CreateAxisStyleController(AxisStyle doc, UseDocument useDocumentCopy) { var result = (AxisStyleController)Current.Gui.GetControllerAndControl(new object[] { doc }, typeof(AxisStyleController), useDocumentCopy); result.MadeDirty += EhAxisStyleControllerDirty; return result; }
private void OnAxisStyleCreation(AxisStyle result) { MajorLabelCondController.AnnounceEnabledChanged(result.AreMajorLabelsEnabled); MinorLabelCondController.AnnounceEnabledChanged(result.AreMinorLabelsEnabled); }
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { AxisStyle s = SDeserialize(o, info, parent); return(s); }