PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderInlineBegin Method
The C1.C1Preview.C1PrintDocument.Style to use for the paragraph.
The width of the paragraph. If null, page (or column for multi-column layouts) width is used.
The height of the paragraph. If null, C1.C1Preview.Unit.Auto is used.

In This Topic
    RenderInlineBegin Method (SampleC1PrintDocument)
    In This Topic
    Begins rendering of a new inline paragraph into the C1.C1Preview.C1PrintDocument.Body of the current document, using the specified C1.C1Preview.C1PrintDocument.Style and dimensions.
    Syntax
    'Declaration
     
    Public Function RenderInlineBegin( _
       ByVal style As Style, _
       ByVal width As Object, _
       ByVal height As Object _
    ) As Boolean
    public bool RenderInlineBegin( 
       Style style,
       object width,
       object height
    )

    Parameters

    style
    The C1.C1Preview.C1PrintDocument.Style to use for the paragraph.
    width
    The width of the paragraph. If null, page (or column for multi-column layouts) width is used.
    height
    The height of the paragraph. If null, C1.C1Preview.Unit.Auto is used.

    Return Value

    true if no warnings were generated by this call, false otherwise.
    Remarks
    Use this method to set the C1.C1Preview.C1PrintDocument.Style, C1.C1Preview.RenderObject.Width and C1.C1Preview.RenderObject.Height of the C1.C1Preview.RenderParagraph object maintained internally to serve subsequent RenderInline... calls. The specified parameters are in effect until the started paragraph is ended by a call to C1.C1Preview.C1PrintDocument.RenderInlineEnd, another C1.C1Preview.C1PrintDocument.RenderInlineBegin, or any of the RenderBlock... or RenderDirect... methods.

    It is not necessary to call this method in order to use other RenderInline... methods (such as C1.C1Preview.C1PrintDocument.RenderInline or C1.C1Preview.C1PrintDocument.RenderInlineText), but calling this method allows to set the style and dimensions for the paragraph that will be filled by subsequent RenderInline... calls.

    This method can only be used between calls to C1.C1Preview.C1PrintDocument.StartDoc and C1.C1Preview.C1PrintDocument.EndDoc methods on the current document. For details, see C1.C1Preview.C1PrintDocument.RenderBlock.

    See Also