Поделиться через


PrintPageEventArgs.PageVisual Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the visual element to print.

Namespace:  System.Windows.Printing
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property PageVisual As UIElement
public UIElement PageVisual { get; set; }

Property Value

Type: System.Windows.UIElement
The visual element to print. The default is nulla null reference (Nothing in Visual Basic).

Remarks

To print the entire Silverlight control, set the PageVisual property to the root visual element. Alternatively, you can print a portion of the Silverlight control by setting PageVisual to the named UIElement that you want to print.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.