| C1.UWP.Word Assembly > C1.Xaml.Word Namespace > C1WordDocument Class > DrawElement Method : DrawElement(FrameworkElement,Rect,ContentAlignment,Stretch) Method |
'Declaration Public Overloads Function DrawElement( _ ByVal e As Windows.UI.Xaml.FrameworkElement, _ ByVal rc As Windows.Foundation.Rect, _ ByVal align As ContentAlignment, _ ByVal stretch As Windows.UI.Xaml.Media.Stretch _ ) As System.Threading.Tasks.Task
public System.Threading.Tasks.Task DrawElement( Windows.UI.Xaml.FrameworkElement e, Windows.Foundation.Rect rc, ContentAlignment align, Windows.UI.Xaml.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 Windows.UI.Xaml.FrameworkElement being rendered.