Table of Contents

Class DialogUtils

Namespace
Npp.DotNet.Plugin.Winforms
Assembly
Npp.DotNet.Plugin.dll

Helper methods for interacting with Notepad++'s GUI.

public static class DialogUtils
Inheritance
DialogUtils
Inherited Members

Methods

GetColorAlpha(Colour, int)

Gets a translucent Color from the RGB values of rgb and the given alpha value.

public static Color GetColorAlpha(Colour rgb, int alpha = 255)

Parameters

rgb Colour

A Colour representing a 24-bit opaque color.

alpha int

The alpha component of the returned Color.

Returns

Color

GetColorAlpha(uint)

Gets a translucent Color from the alpha component and RGB values of value.

public static Color GetColorAlpha(uint value)

Parameters

value uint

A 32-bit color value in ABGR format.

Returns

Color

GetDefaultBackgroundColor()

Calls NPPM_GETEDITORDEFAULTBACKGROUNDCOLOR and converts the return value to a Color.

public static Color GetDefaultBackgroundColor()

Returns

Color

GetDefaultForegroundColor()

Calls NPPM_GETEDITORDEFAULTFOREGROUNDCOLOR and converts the return value to a Color.

public static Color GetDefaultForegroundColor()

Returns

Color