PDF for WinRT
DrawElement(FrameworkElement,Rect,ContentAlignment,Stretch) Method


Windows.UI.Xaml.FrameworkElement to render into the document.
Windows.Foundation.Rect structure that specifies the location of the drawn element, in points from the top left corner of the page.
ContentAlignment value that specifies how the element should be aligned within the rectangle.
Windows.UI.Xaml.Media.Stretch value that specifies how the element should be sized to fit the rectangle.
Draws the specified Windows.UI.Xaml.Media.Imaging.WriteableBitmap object at the specified location, adjusting the image size as specified by the align and stretch parameters.
Syntax
'Declaration
 
Public Overloads Sub DrawElement( _
   ByVal e As FrameworkElement, _
   ByVal rc As Rect, _
   ByVal align As ContentAlignment, _
   ByVal stretch As Stretch _
) 
'Usage
 
Dim instance As C1PdfDocument
Dim e As FrameworkElement
Dim rc As Rect
Dim align As ContentAlignment
Dim stretch As Stretch
 
instance.DrawElement(e, rc, align, stretch)
public void DrawElement( 
   FrameworkElement e,
   Rect rc,
   ContentAlignment align,
   Stretch stretch
)

Parameters

e
Windows.UI.Xaml.FrameworkElement to render into the document.
rc
Windows.Foundation.Rect structure that specifies the location of the drawn element, in points from the top left corner of the page.
align
ContentAlignment value that specifies how the element should be aligned within the rectangle.
stretch
Windows.UI.Xaml.Media.Stretch value that specifies how the element should be sized to fit the rectangle.
Remarks

This method must be called from the main thread. Calling it from a background thread will raise a cross-thread exception when the method tries to access the properties of the Windows.UI.Xaml.FrameworkElement being rendered.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback