HypernovaDesktop Components · docs
Binarymission
WinFormsWatermark Text Box › WatermarkTextBox

WatermarkTextBox

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.InputControls

Class WatermarkTextBox.

public class WatermarkTextBox : Control

Inherits from / implements: Control

Members at a glance

WatermarkTextBoxInitializes a new instance of the WatermarkTextBox class.
BorderColorGets or sets the color of the border.
IsWatermarkEnabledGets or sets a value indicating whether this instance is watermark enabled.
ShouldRenderWatermarkImageGets or sets a value indicating whether the control should render watermark image.
SiteGets or sets the site of the control.
TextGets or sets the text associated with this control.
TextScrollBarsGets or sets the text scroll bars.
WatermarkBackColorGets or sets the backcolor of the watermark.
WatermarkImageGets or sets the watermark image.
WatermarkImageSizeGets or sets the size of the watermark image.
WatermarkPaddingGets or sets the watermark padding.
WatermarkProviderGets or sets the watermark provider.
WatermarkTextGets or sets the watermark text.
WatermarkTextFontGets or sets the watermark text font.
WatermarkTextForeColorGets or sets the forecolor of the watermark text.
OnBackColorChangedRaises the BackColorChanged event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
OnGotFocusRaises the GotFocus event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
OnHandleCreatedRaises the HandleCreated event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
OnLeaveRaises the Leave event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
OnLostFocusRaises the LostFocus event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
OnMouseUpRaises the MouseUp event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
OnPaintRaises the Paint event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
OnPaintBackgroundRaises the PaintBackground event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
OnResizeRaises the Resize event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
OnSizeChangedRaises the SizeChanged event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

Constructors

WatermarkTextBox

public WatermarkTextBox()

Initializes a new instance of the WatermarkTextBox class.

Properties

BorderColor

public Color BorderColor

Gets or sets the color of the border.

Value. The color of the border.

IsWatermarkEnabled

public bool IsWatermarkEnabled

Gets or sets a value indicating whether this instance is watermark enabled.

Value. true if this instance is watermark enabled; otherwise, false .

ShouldRenderWatermarkImage

public bool ShouldRenderWatermarkImage

Gets or sets a value indicating whether the control should render watermark image.

Site

public override ISite Site

Gets or sets the site of the control.

Value. The site.

Returns. The ISite associated with the Control, if any.

Text

public override string Text

Gets or sets the text associated with this control.

Value. The text.

Returns. The text associated with this control.

TextScrollBars

public ScrollBars TextScrollBars

Gets or sets the text scroll bars.

Value. The text scroll bars.

WatermarkBackColor

public Color WatermarkBackColor

Gets or sets the backcolor of the watermark.

WatermarkImage

public Bitmap WatermarkImage

Gets or sets the watermark image.

Value. The watermark image.

WatermarkImageSize

public Size WatermarkImageSize

Gets or sets the size of the watermark image.

Value. The size of the watermark image.

WatermarkPadding

public Padding WatermarkPadding

Gets or sets the watermark padding.

Value. The watermark padding.

WatermarkProvider

public WatermarkProvider WatermarkProvider

Gets or sets the watermark provider.

Value. The watermark provider.

WatermarkText

public string WatermarkText

Gets or sets the watermark text.

Value. The watermark text.

WatermarkTextFont

public Font WatermarkTextFont

Gets or sets the watermark text font.

Value. The watermark text font.

WatermarkTextForeColor

public Color WatermarkTextForeColor

Gets or sets the forecolor of the watermark text.

Methods

OnBackColorChanged

protected override void OnBackColorChanged(EventArgs e)

Raises the BackColorChanged event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnGotFocus

protected override void OnGotFocus(EventArgs e)

Raises the GotFocus event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnHandleCreated

protected override void OnHandleCreated(EventArgs e)

Raises the HandleCreated event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnLeave

protected override void OnLeave(EventArgs e)

Raises the Leave event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnLostFocus

protected override void OnLostFocus(EventArgs e)

Raises the LostFocus event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseUp

protected override void OnMouseUp(MouseEventArgs e)

Raises the MouseUp event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnPaint

protected override void OnPaint(PaintEventArgs e)

Raises the Paint event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnPaintBackground

protected override void OnPaintBackground(PaintEventArgs pevent)

Raises the PaintBackground event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

pevent
The data for the event.

OnResize

protected override void OnResize(EventArgs e)

Raises the Resize event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnSizeChanged

protected override void OnSizeChanged(EventArgs e)

Raises the SizeChanged event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.