Back to Devexpress

WidgetView.DocumentProperties Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-widget-dot-widgetview-082b7bd6.md

latest3.7 KB
Original Source

WidgetView.DocumentProperties Property

Provides access to properties, common to all Documents within this WidgetView.

Namespace : DevExpress.XtraBars.Docking2010.Views.Widget

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public IDocumentProperties DocumentProperties { get; }
vb
<XtraSerializableProperty(XtraSerializationVisibility.Content)>
Public ReadOnly Property DocumentProperties As IDocumentProperties

Property Value

TypeDescription
IDocumentProperties

An IDocumentProperties object that stores properties, common to all Documents within this WidgetView.

|

Remarks

For each specific Document, you can override the global DocumentProperties settings. To do so use the Document.Properties property of the required Document.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DocumentProperties property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-create-custom-document-manager/CS/CustomDocument/Custom DocumentManager/CustomWidgetViewRegistrator.cs#L29

csharp
public override BaseDocument CreateDocument(Control control) {
    return new CustomDocument(View.DocumentProperties as IDocumentProperties);
}

winforms-create-custom-document-manager/VB/CustomDocument/Custom DocumentManager/CustomWidgetViewRegistrator.vb#L32

vb
Public Overrides Function CreateDocument(ByVal control As Control) As BaseDocument
    Return New CustomDocument(TryCast(View.DocumentProperties, IDocumentProperties))
End Function

See Also

Properties

WidgetView Class

WidgetView Members

DevExpress.XtraBars.Docking2010.Views.Widget Namespace