Table of Contents

Method GetDefaultBorderColor

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

GetDefaultBorderColor(bool)

Gets default border color.

public static Color GetDefaultBorderColor(bool isDarkBackground)

Parameters

isDarkBackground bool

Whether control has dark background.

Returns

Color

GetDefaultBorderColor(Control?)

Gets default border color if no colors are specified for the border.

public static Color GetDefaultBorderColor(Control? control)

Parameters

control Control

Control which background color is checked to get whether it is dark.

Returns

Color