Back to Devexpress

BuilderFactoryExtensions.WebDocumentViewer(BuilderFactory) Method

xtrareports-devexpress-dot-aspnetcore-dot-builderfactoryextensions-dot-webdocumentviewer-x28-devexpress-dot-aspnetcore-dot-builderfactory-x29.md

latest2.5 KB
Original Source

BuilderFactoryExtensions.WebDocumentViewer(BuilderFactory) Method

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

Namespace : DevExpress.AspNetCore

Assembly : DevExpress.AspNetCore.Reporting.v25.2.dll

NuGet Package : DevExpress.AspNetCore.Reporting

Declaration

csharp
public static WebDocumentViewerBuilder WebDocumentViewer(
    this BuilderFactory factory
)
vb
<ExtensionAttribute>
Public Shared Function WebDocumentViewer(
    factory As BuilderFactory
) As WebDocumentViewerBuilder

Parameters

NameTypeDescription
factoryBuilderFactory

The BuilderFactory instance that this method extends.

|

Returns

TypeDescription
WebDocumentViewerBuilder

The object required to build a Document Viewer.

|

Remarks

Use this extension method to create a Document Viewer Builder and generate an element for a Document Viewer on a page. Specify an identifier for the element using the returned object’s Name(String) method.

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

See Also

BuilderFactoryExtensions Class

BuilderFactoryExtensions Members

DevExpress.AspNetCore Namespace