WinForms › Watermark Text Box › IWatermarkProvider
IWatermarkProvider
interface.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.InputControls
A custom interface that can be implemented by any control that wants to provide watermark fatures so as to to be plugged into Binarymission WatermarkTextBox control for rendering a custom UI inside that control.
public interface IWatermarkProvider
Remarks
Instead of implementing this interface directly, you could inherit from our pre-built class that implements this interface, and you could setup just the UI for it. Refer to WatermarkControlProvider for details.
Members at a glance
ShouldRenderWatermarkImage | Gets or sets a value indicating whether the control should render watermark image. |
WatermarkImage | Gets or sets the watermark image. |
WatermarkImageSize | Gets or sets the size of the watermark image. |
WatermarkText | Gets or sets the watermark text. |
Properties
ShouldRenderWatermarkImage
bool ShouldRenderWatermarkImage
Gets or sets a value indicating whether the control should render watermark image.
WatermarkImage
Bitmap WatermarkImage
Gets or sets the watermark image.
WatermarkImageSize
Size WatermarkImageSize
Gets or sets the size of the watermark image.
WatermarkText
string WatermarkText
Gets or sets the watermark text.