WatermarkTextBox
Class WatermarkTextBox.
public class WatermarkTextBox : Control
Inherits from / implements: Control
Members at a glance
WatermarkTextBox | Initializes a new instance of the WatermarkTextBox class. |
BorderColor | Gets or sets the color of the border. |
IsWatermarkEnabled | Gets or sets a value indicating whether this instance is watermark enabled. |
ShouldRenderWatermarkImage | Gets or sets a value indicating whether the control should render watermark image. |
Site | Gets or sets the site of the control. |
Text | Gets or sets the text associated with this control. |
TextScrollBars | Gets or sets the text scroll bars. |
WatermarkBackColor | Gets or sets the backcolor of the watermark. |
WatermarkImage | Gets or sets the watermark image. |
WatermarkImageSize | Gets or sets the size of the watermark image. |
WatermarkPadding | Gets or sets the watermark padding. |
WatermarkProvider | Gets or sets the watermark provider. |
WatermarkText | Gets or sets the watermark text. |
WatermarkTextFont | Gets or sets the watermark text font. |
WatermarkTextForeColor | Gets or sets the forecolor of the watermark text. |
OnBackColorChanged | Raises the BackColorChanged event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
OnGotFocus | Raises the GotFocus event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
OnHandleCreated | Raises the HandleCreated event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
OnLeave | Raises the Leave event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
OnLostFocus | Raises the LostFocus event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
OnMouseUp | Raises the MouseUp event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
OnPaint | Raises the Paint event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
OnPaintBackground | Raises the PaintBackground event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
OnResize | Raises the Resize event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
OnSizeChanged | Raises the SizeChanged event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior. |
Constructors
WatermarkTextBox
Initializes a new instance of the WatermarkTextBox class.
Properties
BorderColor
Gets or sets the color of the border.
Value. The color of the border.
IsWatermarkEnabled
Gets or sets a value indicating whether this instance is watermark enabled.
Value. true if this instance is watermark enabled; otherwise, false .
ShouldRenderWatermarkImage
Gets or sets a value indicating whether the control should render watermark image.
Site
Gets or sets the site of the control.
Value. The site.
Returns. The ISite associated with the Control, if any.
Text
Gets or sets the text associated with this control.
Value. The text.
Returns. The text associated with this control.
TextScrollBars
Gets or sets the text scroll bars.
Value. The text scroll bars.
WatermarkBackColor
Gets or sets the backcolor of the watermark.
WatermarkImage
Gets or sets the watermark image.
Value. The watermark image.
WatermarkImageSize
Gets or sets the size of the watermark image.
Value. The size of the watermark image.
WatermarkPadding
Gets or sets the watermark padding.
Value. The watermark padding.
WatermarkProvider
Gets or sets the watermark provider.
Value. The watermark provider.
WatermarkText
Gets or sets the watermark text.
Value. The watermark text.
WatermarkTextFont
Gets or sets the watermark text font.
Value. The watermark text font.
WatermarkTextForeColor
Gets or sets the forecolor of the watermark text.
Methods
OnBackColorChanged
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
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
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
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
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
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
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
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
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
Raises the SizeChanged event. WatermarkTextBox overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.