In This Article

OfficeClassicDockRenderer Class

Provides a renderer for dock controls that have an Office classic appearance.

[TypeConverter(typeof(OfficeClassicDockRendererConverter))]
public class OfficeClassicDockRenderer : VisualStudioClassicDockRenderer, IDisposable, IDockRenderer, IUIRenderer
Inheritance:
object DisposableObjectBase UIRenderer DockRenderer WindowsClassicDockRenderer VisualStudioClassicDockRenderer object
Implements:
IDisposable IDockRenderer IUIRenderer

Constructors

OfficeClassicDockRenderer()

Initializes an instance of the class.

public OfficeClassicDockRenderer()

OfficeClassicDockRenderer(IWindowsColorScheme)

Initializes an instance of the class.

public OfficeClassicDockRenderer(IWindowsColorScheme colorScheme)
Parameter Type Description
colorScheme IWindowsColorScheme

The IWindowsColorScheme to use as a base for the colors.

OfficeClassicDockRenderer(WindowsColorSchemeType)

Initializes an instance of the class.

public OfficeClassicDockRenderer(WindowsColorSchemeType colorSchemeType)
Parameter Type Description
colorSchemeType WindowsColorSchemeType

The WindowsColorSchemeType to use as a base for the colors.

Properties

BaseColorSchemeType

The WindowsColorSchemeType to use as a base for the colors.

public WindowsColorSchemeType BaseColorSchemeType { get; set; }

Property Value

WindowsColorSchemeType

DockContainerTitleBarDecorationBackBackgroundFill

The BackgroundFill for a background DockContainer title bar decoration.

public BackgroundFill? DockContainerTitleBarDecorationBackBackgroundFill { get; set; }

Property Value

BackgroundFill

DockContainerTitleBarDecorationForeBackgroundFill

The BackgroundFill for a foreground DockContainer title bar decoration.

public BackgroundFill? DockContainerTitleBarDecorationForeBackgroundFill { get; set; }

Property Value

BackgroundFill

Methods

Dispose(bool)

Releases the unmanaged resources used by the object and optionally releases the managed resources.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

This method is called by the public Dispose() method and the Finalize method. Dispose invokes this method with the disposing parameter set to true. Finalize invokes this method with disposing set to false.

DrawDockContainerTitleBarForeground(PaintEventArgs, Rectangle, DockContainer)

Draws the foreground of a DockContainer title bar.

public override void DrawDockContainerTitleBarForeground(PaintEventArgs e, Rectangle bounds, DockContainer dockContainer)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

bounds Rectangle

The bounds in which to draw.

dockContainer DockContainer

The DockContainer whose title bar is being painted.

ResetAll(bool)

Resets all property values to their defaults.

protected override void ResetAll(bool force)
Parameter Type Description
force bool

Whether to force resetting.

ResetDockContainerTitleBarDecorationBackBackgroundFill()

Resets the DockContainerTitleBarDecorationBackBackgroundFill property to its default value.

public virtual void ResetDockContainerTitleBarDecorationBackBackgroundFill()

ResetDockContainerTitleBarDecorationForeBackgroundFill()

Resets the DockContainerTitleBarDecorationForeBackgroundFill property to its default value.

public virtual void ResetDockContainerTitleBarDecorationForeBackgroundFill()

ShouldSerializeDockContainerTitleBarDecorationBackBackgroundFill()

Indicates whether the DockContainerTitleBarDecorationBackBackgroundFill property should be persisted.

public virtual bool ShouldSerializeDockContainerTitleBarDecorationBackBackgroundFill()

Returns

bool:

true if the property value has changed from its default; otherwise, false.

ShouldSerializeDockContainerTitleBarDecorationForeBackgroundFill()

Indicates whether the DockContainerTitleBarDecorationForeBackgroundFill property should be persisted.

public virtual bool ShouldSerializeDockContainerTitleBarDecorationForeBackgroundFill()

Returns

bool:

true if the property value has changed from its default; otherwise, false.

Inherited Members

Extension Methods