C1.Silverlight.Pdf.5 Assembly > C1.Silverlight.Pdf Namespace > C1PdfDocument Class > DrawElement Method : DrawElement(FrameworkElement,Rect,ContentAlignment,Stretch) Method |
'Declaration
Public Overloads Sub DrawElement( _ ByVal e As FrameworkElement, _ ByVal rc As Rect, _ ByVal align As ContentAlignment, _ ByVal stretch As Stretch _ )
public void DrawElement( FrameworkElement e, Rect rc, ContentAlignment align, Stretch stretch )
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 System.Windows.FrameworkElement being rendered.
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