Class ChartPrintDialog
ChartPrintDialog
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class ChartPrintDialog : Window, IComponentConnector
Constructors
ChartPrintDialog()
Initiates a new instance of the ChartPrintDialog class.
Declaration
public ChartPrintDialog()
Fields
PrintModeProperty
The DependencyProperty for PrintMode property.
Declaration
public static readonly DependencyProperty PrintModeProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
PrintStretchProperty
The DependencyProperty for PrintStretch property.
Declaration
public static readonly DependencyProperty PrintStretchProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
PrintMode
Gets or sets the print mode.
Declaration
public ChartPrintMode PrintMode { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartPrintMode | The print stretch. |
PrintStretch
Gets or sets the print stretch.
Declaration
public Stretch PrintStretch { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Media.Stretch | The print stretch. |
Methods
CloneVisualState(FrameworkElement)
Creates a visual clone of the specified framework element by rendering it into a System.Windows.Media.DrawingVisual.
Declaration
public Visual CloneVisualState(FrameworkElement targetElement)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.FrameworkElement | targetElement |
Returns
| Type |
|---|
| System.Windows.Media.Visual |
GetPrintVisual(FrameworkElement)
Generates a printable visual representation of the specified chart element.
Declaration
public virtual Rectangle GetPrintVisual(FrameworkElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.FrameworkElement | element |
Returns
| Type |
|---|
| System.Windows.Shapes.Rectangle |
GetUIElementBounds(UIElement)
Calculates the bounding rectangle of the specified UI element based on its visual offset and desired size.
Declaration
public Rect GetUIElementBounds(UIElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.UIElement | element |
Returns
| Type |
|---|
| System.Windows.Rect |
InitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()
OnPrintModeChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises PrintModeChanged event.
Declaration
protected virtual void OnPrintModeChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnPrintStretchChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises PrintStretchChanged event.
Declaration
protected virtual void OnPrintStretchChanged(DependencyPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
Declaration
protected override void OnRender(DrawingContext drawingContext)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Media.DrawingContext | drawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |
ShowPrintDialog(FrameworkElement)
Shows the print dialog.
Declaration
public bool? ShowPrintDialog(FrameworkElement element)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.FrameworkElement | element | The element. |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> | Returns ShowDialog |
ShowPrintDialog(FrameworkElement, Rect, Double, Double)
Shows the print dialog.
Declaration
public virtual bool? ShowPrintDialog(FrameworkElement element, Rect printArea, double elem_height, double elem_width)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.FrameworkElement | element | The element. |
| System.Windows.Rect | printArea | The print area. |
| System.Double | elem_height | The intended height of the element for preview purposes. |
| System.Double | elem_width | The intended width of the element for preview purposes. |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> | Returns ShowDialog |
See Also
Events
PrintModeChanged
Event that is raised when PrintMode property is changed.
Declaration
public event PropertyChangedCallback PrintModeChanged
Event Type
| Type |
|---|
| System.Windows.PropertyChangedCallback |
PrintStretchChanged
Event that is raised when PrintStretch property is changed.
Declaration
public event PropertyChangedCallback PrintStretchChanged
Event Type
| Type |
|---|
| System.Windows.PropertyChangedCallback |