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 MarshalByRefObject DisposableObject UIRenderer DockRenderer WindowsClassicDockRenderer VisualStudioClassicDockRenderer object
Implements:
IDisposable IDockRenderer IUIRenderer

Constructors

OfficeClassicDockRenderer()

Initializes a new instance of the class.

public OfficeClassicDockRenderer()

Remarks

The default constructor initializes all fields to their default values.

OfficeClassicDockRenderer(IWindowsColorScheme)

Initializes a new 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 a new 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

Gets or sets the WindowsColorSchemeType to use as a base for the colors.

public WindowsColorSchemeType BaseColorSchemeType { get; set; }

Property Value

WindowsColorSchemeType:

The WindowsColorSchemeType to use as a base for the colors.

DockContainerTitleBarDecorationBackBackgroundFill

Gets or sets the BackgroundFill for a background DockContainer title bar decoration.

public BackgroundFill DockContainerTitleBarDecorationBackBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a background DockContainer title bar decoration.

DockContainerTitleBarDecorationForeBackgroundFill

Gets or sets the BackgroundFill for a foreground DockContainer title bar decoration.

public BackgroundFill DockContainerTitleBarDecorationForeBackgroundFill { get; set; }

Property Value

BackgroundFill:

The BackgroundFill for a foreground DockContainer title bar decoration.

Methods

Dispose(bool)

Disposes any resources used by the object.

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

Whether the object is being disposed.

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