Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / Utils Class / AsC1Document Method
A document to test/convert.

In This Topic
    AsC1Document Method
    In This Topic
    Gets the IC1Document representing the passed object, If the passed document is a C1PrintDocument or C1MultiDocument, returns that object. Otherwise, if the passed document is a C1.C1Report.C1Report, returns that report's C1.C1Report.C1Report.C1Document property. Otherwise, returns null.
    Syntax
    'Declaration
     
    Public Shared Function AsC1Document( _
       ByVal o As Object _
    ) As IC1Document
    public static IC1Document AsC1Document( 
       object o
    )

    Parameters

    o
    A document to test/convert.

    Return Value

    IC1Document representing the passed object, or null.
    See Also