ModuleListPage.DefaultViewMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the default view mode.
protected:
virtual property Microsoft::Web::Management::Client::ModuleListPageViewModes DefaultViewMode { Microsoft::Web::Management::Client::ModuleListPageViewModes get(); };
protected virtual Microsoft.Web.Management.Client.ModuleListPageViewModes DefaultViewMode { get; }
member this.DefaultViewMode : Microsoft.Web.Management.Client.ModuleListPageViewModes
Protected Overridable ReadOnly Property DefaultViewMode As ModuleListPageViewModes
Property Value
The default ModuleListPageViewModes object.
Examples
The following example sets the default view mode to Icons.
internal class DemoPage : ModuleListPage {
public DemoPage() : base() { }
ModuleListPageGrouping _entryTypeGrouping;
protected override ModuleListPageViewModes
DefaultViewMode {
get {
return ModuleListPageViewModes.Icons;
}
}
ModuleListPageGrouping setMyGrouping() {
if (_entryTypeGrouping == null) {
_entryTypeGrouping = new ModuleListPageGrouping(
"Entry Type", "Entry Type");
}
return _entryTypeGrouping;
}
Remarks
The default implementation returns Details. Override this method to set a different default view mode.