Class TreeMapPrintDialog
Interaction logic for TreeMapPrintDialog.xaml
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.TreeMap
Assembly: Syncfusion.SfTreeMap.WPF.dll
Syntax
public class TreeMapPrintDialog : Window, IComponentConnector
Constructors
TreeMapPrintDialog()
Constructor for TreeMapPrintDialog.
Declaration
public TreeMapPrintDialog()
Fields
PrintModeProperty
Using a DependencyProperty as the backing store for TreeMapPrintMode. This enables to choose TreeMap print mode...
Declaration
public static readonly DependencyProperty PrintModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PrintStretchProperty
Using a DependencyProperty as the backing store for PrintStrech. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty PrintStretchProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
PrintMode
Gets or sets the print mode.
Declaration
public TreeMapPrintMode PrintMode { get; set; }
Property Value
Type | Description |
---|---|
TreeMapPrintMode | 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)
Method used to clone the framework element.
Declaration
public Visual CloneVisualState(FrameworkElement targetElement)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | targetElement | Framework element. |
Returns
Type | Description |
---|---|
System.Windows.Media.Visual | Returns the visual. |
GetPrintVisual(FrameworkElement)
Method used to get the rectangle value of print element.
Declaration
public virtual Rectangle GetPrintVisual(FrameworkElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | element | Print element |
Returns
Type | Description |
---|---|
System.Windows.Shapes.Rectangle | Rectangle of print element. |
GetUIElementBounds(UIElement)
Method used to get the bounds of UI element.
Declaration
public Rect GetUIElementBounds(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | element | UI element. |
Returns
Type | Description |
---|---|
System.Windows.Rect | Returns bounds |
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 |