Spread WPF 18
GrapeCity.Spreadsheet.Printing Namespace / PrintingContext Class / DrawText(String,Font,Rectangle,Rectangle,HorizontalAlignment,VerticalAlignment,Boolean,Int32,Boolean) Method


In This Topic
    DrawText(String,Font,Rectangle,Rectangle,HorizontalAlignment,VerticalAlignment,Boolean,Int32,Boolean) Method
    In This Topic
    Syntax
    'Declaration
     
    Public MustOverride Sub DrawText( _
       ByVal text As String, _
       ByVal font As Font, _
       ByVal rect As Rectangle, _
       ByVal padding As Rectangle, _
       ByVal left As HorizontalAlignment, _
       ByVal bottom As VerticalAlignment, _
       ByVal wrapText As Boolean, _
       Optional ByVal rotation As Integer, _
       Optional ByVal shrinkToFit As Boolean _
    ) 
    'Usage
     
    Dim instance As PrintingContext
    Dim text As String
    Dim font As Font
    Dim rect As Rectangle
    Dim padding As Rectangle
    Dim left As HorizontalAlignment
    Dim bottom As VerticalAlignment
    Dim wrapText As Boolean
    Dim rotation As Integer
    Dim shrinkToFit As Boolean
     
    instance.DrawText(text, font, rect, padding, left, bottom, wrapText, rotation, shrinkToFit)
    public abstract void DrawText( 
       string text,
       Font font,
       Rectangle rect,
       Rectangle padding,
       HorizontalAlignment left,
       VerticalAlignment bottom,
       bool wrapText,
       int rotation,
       bool shrinkToFit
    )

    Parameters

    text
    font
    rect
    padding
    left
    bottom
    wrapText
    rotation
    shrinkToFit
    See Also