System.Gadget.Sidebar.dockSide Property

Gets the Windows Sidebar dock state.

This property is read-only.

Syntax

propVal = System.Gadget.Sidebar.dockSide()

  

Parameters

  • strDocked [out]
    Retrieves the dock state of the Sidebar.

    Value Meaning
    Right

    The Sidebar is docked on the right side of the monitor.

    Left

    The Sidebar is docked on the left side of the monitor.

     

Examples

The following example demonstrates how to get the dock state of the Sidebar.

// --------------------------------------------------------------------
// Initialize the gadget.
// --------------------------------------------------------------------
function Init()
{
    // Initialize the gadget content.
    SetContentText(System.Gadget.Sidebar.dockSide);
}

Requirements

Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
IDL Sidebar.idl
DLL Sidebar.Exe version 1.00 or later

See Also

System.Gadget.Sidebar

onDockSideChanged

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK