BuilderFactoryExtension.WebDocumentViewer(BuilderFactory, String) Method

The BuilderFactory class' extension method required to create a Document Viewer Builder.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Reporting.v18.1.dll

Declaration

public static WebDocumentViewerBuilder WebDocumentViewer(
    this BuilderFactory factory,
    string name
)
<ExtensionAttribute>
Public Shared Function WebDocumentViewer(
    factory As BuilderFactory,
    name As String
) As WebDocumentViewerBuilder

Parameters

Type Name Description
BuilderFactory factory

The BuilderFactory instance that this method extends.

String name

An identifier for the element representing a Document Viewer on the page.

Returns

Type Description
WebDocumentViewerBuilder

The object required to build a Document Viewer.

Use this extension method to create a Document Viewer Builder and generate an element for a Document Viewer on a page. The element's identifier is specified using the value passed as the name parameter.

@Html.DevExpress().WebDocumentViewer("DocumentViewer").Height("1000px")