Class ChartPrintDialog
ChartPrintDialog
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class ChartPrintDialog : Window, IComponentConnector
Constructors
ChartPrintDialog()
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)
Declaration
public Visual CloneVisualState(FrameworkElement targetElement)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | targetElement |
Returns
Type |
---|
System.Windows.Media.Visual |
GetPrintVisual(FrameworkElement)
Declaration
public virtual Rectangle GetPrintVisual(FrameworkElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | element |
Returns
Type |
---|
System.Windows.Shapes.Rectangle |
GetUIElementBounds(UIElement)
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 Nullable<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 Nullable<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 | |
System.Double | elem_width |
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 |