C1.WPF.Word.4 Assembly > C1.WPF.Word Namespace > C1WordDocument Class > DrawElement Method : DrawElement(FrameworkElement,Rect,ContentAlignment,Stretch) Method |
'Declaration Public Overloads Sub DrawElement( _ ByVal e As System.Windows.FrameworkElement, _ ByVal rc As System.Windows.Rect, _ ByVal align As ContentAlignment, _ ByVal stretch As System.Windows.Media.Stretch _ )
public void DrawElement( System.Windows.FrameworkElement e, System.Windows.Rect rc, ContentAlignment align, System.Windows.Media.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.