public AxisLabelStyle(AxisLabelStyle from) { _font = null == from._font ? null : (Font)from._font.Clone(); _stringFormat = (StringFormat)from._stringFormat.Clone(); _horizontalAlignment = from._horizontalAlignment; _verticalAlignment = from._verticalAlignment; _brush = (BrushX)from._brush.Clone(); _automaticRotationShift = from._automaticRotationShift; _xOffset = from._xOffset; _yOffset = from._yOffset; _rotation = from._rotation; _backgroundStyle = null == from._backgroundStyle ? null : (IBackgroundStyle)from._backgroundStyle.Clone(); _labelFormatting = (ILabelFormatting)from._labelFormatting.Clone(); }
public AxisLabelStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context) { if (null == context) context = PropertyExtensions.GetPropertyContextOfProject(); _font = context.GetValue(GraphDocument.PropertyKeyDefaultFont); var foreColor = context.GetValue(GraphDocument.PropertyKeyDefaultForeColor); _brush = new BrushX(foreColor) { ParentObject = this }; _automaticRotationShift = true; _suppressedLabels = new SuppressedTicks() { ParentObject = this }; _labelFormatting = new Gdi.LabelFormatting.NumericLabelFormattingAuto() { ParentObject = this }; SetStringFormat(); }
public AxisLabelStyle(AxisLabelStyle from) { _font = null==from._font ? null : (Font)from._font.Clone(); _stringFormat = (StringFormat)from._stringFormat.Clone(); _horizontalAlignment = from._horizontalAlignment; _verticalAlignment = from._verticalAlignment; _brush = (BrushX)from._brush.Clone(); _automaticRotationShift = from._automaticRotationShift; _xOffset = from._xOffset; _yOffset = from._yOffset; _rotation = from._rotation; _backgroundStyle = null==from._backgroundStyle ? null : (IBackgroundStyle)from._backgroundStyle.Clone(); _labelFormatting = (ILabelFormatting)from._labelFormatting.Clone(); }
public AxisLabelStyle(CSAxisSide? labelSide, Altaxo.Main.Properties.IReadOnlyPropertyBag context) { if (null == context) context = PropertyExtensions.GetPropertyContextOfProject(); _labelSide = labelSide; _font = GraphDocument.GetDefaultFont(context); var foreColor = GraphDocument.GetDefaultForeColor(context); _brush = Materials.GetSolidMaterial(foreColor); _automaticRotationShift = true; _rotationX = 90; _suppressedLabels = new SuppressedTicks() { ParentObject = this }; _labelFormatting = new LabelFormatting.NumericLabelFormattingAuto() { ParentObject = this }; }