Inheritance
System.Object
TextBoxBarItemRenderer
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
public class TextBoxBarItemRenderer : BarItemRenderer, IBarItemRenderer, IDisposable
Constructors
Declaration
public TextBoxBarItemRenderer(IBarRenderer parent)
Parameters
Properties
Declaration
public override BarItem BarItem { get; set; }
Property Value
Overrides
Declaration
public override RectangleF Bounds { get; set; }
Property Value
Type |
System.Drawing.RectangleF |
Overrides
Declaration
public TextBox TextBox { get; }
Property Value
Type |
System.Windows.Forms.TextBox |
Declaration
public override bool Visible { get; set; }
Property Value
Overrides
Methods
Declaration
public override void BarItemPropertyChanged(SyncfusionPropertyChangedEventArgs e)
Parameters
Overrides
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
Declaration
protected override void DrawBackground(DrawToolbarItemEventArgs drawItemInfo, bool useThemes)
Parameters
Overrides
Declaration
protected override void DrawBorders(DrawToolbarItemEventArgs drawItemInfo, bool useThemes)
Parameters
Overrides
DrawTextAndImage(Graphics, RectangleF, Font, Color, Color, DrawItemState)
Declaration
protected override void DrawTextAndImage(Graphics g, RectangleF rectTextAndImage, Font textFont, Color textColor, Color bgColor, DrawItemState state)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.RectangleF |
rectTextAndImage |
|
System.Drawing.Font |
textFont |
|
System.Drawing.Color |
textColor |
|
System.Drawing.Color |
bgColor |
|
System.Windows.Forms.DrawItemState |
state |
|
Overrides
Gets visible text box rectangle.
Declaration
protected virtual Rectangle GetBackTextBoxBounds(Rectangle bounds)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
bounds |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
protected override ItemState GetDrawState()
Returns
Overrides
Returns true, if control must be mirrored.
Declaration
protected bool GetIsMirrored()
Returns
Declaration
public override SizeF GetPreferredSize(IGraphicsProvider gp)
Parameters
Returns
Type |
System.Drawing.SizeF |
Overrides
Declaration
protected virtual Rectangle GetTextBoxBounds(Rectangle bounds)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
bounds |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
public override void OnMouseDown(Point pointMouseDown)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pointMouseDown |
|
Overrides
Declaration
public override void OnPaint(Graphics g, Rectangle clippingRect)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
clippingRect |
|
Overrides
Declaration
public override bool ShouldDrawText()
Returns
Overrides
Implements
System.IDisposable