Class ScrollButtons
Inheritance
System.Object
ScrollButtons
Implements
System.IDisposable
Assembly: Syncfusion.Shared.Base.dll
public class ScrollButtons : ThemedControl, IThemeProvider, IVisualStyle, IDisposable
Constructors
Declaration
Fields
Declaration
protected Color m_arrowColor
Field Value
Type |
System.Drawing.Color |
Declaration
protected Office2007Colors m_office2007ColorTable
Field Value
Declaration
protected Office2010Colors m_office2010ColorTable
Field Value
Properties
Declaration
public Brush BackGroundBrush { get; set; }
Property Value
Type |
System.Drawing.Brush |
Declaration
public ButtonState ButtonState { get; set; }
Property Value
Type |
System.Windows.Forms.ButtonState |
Gets / sets for correctly GradientBrush creation, so that background
is same as Parent's background.
Declaration
public int GradientInflateOffset { get; set; }
Property Value
Declaration
public bool IsReverseGradient { get; set; }
Property Value
Declaration
public bool MaxButtonActive { get; set; }
Property Value
Declaration
public bool MinButtonActive { get; set; }
Property Value
Declaration
public Office2007Theme Office2007ColorScheme { get; set; }
Property Value
Declaration
public Office2010Theme Office2010ColorScheme { get; set; }
Property Value
Declaration
public ScrollButtonAppearance ScrollButtonAppearance { get; set; }
Property Value
Gets / sets ScrollButton highlighted state.
Declaration
public bool Selected { get; set; }
Property Value
Declaration
public VisualStyle Style { get; set; }
Property Value
Declaration
public ScrollButtonsVisualStyle ThemeStyle { get; set; }
Property Value
Declaration
public ButtonID Tracking { get; set; }
Property Value
Declaration
public bool VSLikeButton { get; set; }
Property Value
Methods
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Declaration
protected virtual void DrawOffice2007ScrollButtonArrow(Graphics g, Rectangle rect, ScrollButton scroll, ButtonState buttonState)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Windows.Forms.ScrollButton |
scroll |
|
System.Windows.Forms.ButtonState |
buttonState |
|
Declaration
protected virtual void DrawOffice2007ScrollButtonBackground(Graphics g, Rectangle rect, ButtonState buttonState)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Windows.Forms.ButtonState |
buttonState |
|
Declaration
protected virtual void DrawOffice2010ScrollButtonArrow(Graphics g, Rectangle rect, ScrollButton scroll, ButtonState buttonState)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Windows.Forms.ScrollButton |
scroll |
|
System.Windows.Forms.ButtonState |
buttonState |
|
Declaration
protected virtual void DrawOffice2010ScrollButtonBackground(Graphics g, Rectangle rect, ButtonState buttonState)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Windows.Forms.ButtonState |
buttonState |
|
Declaration
protected virtual void DrawScrollButton(Graphics g, Rectangle rect, ScrollButton scroll, ButtonState buttonState)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Windows.Forms.ScrollButton |
scroll |
|
System.Windows.Forms.ButtonState |
buttonState |
|
Declaration
protected void DrawScrollImage(Graphics g, Rectangle rect, Image image)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Drawing.Image |
image |
|
Declaration
protected void DrawTriangle(Graphics g, Point[] bounds, bool fill)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Point[] |
bounds |
|
System.Boolean |
fill |
|
Declaration
protected virtual void DrawVSLikeButtonArrow(Graphics g, Rectangle rect, ScrollButton scroll, Color arrowColor, ButtonState buttonState)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
System.Windows.Forms.ScrollButton |
scroll |
|
System.Drawing.Color |
arrowColor |
|
System.Windows.Forms.ButtonState |
buttonState |
|
Declaration
protected virtual Rectangle GetButtonRect(ButtonID buttonID)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Helps to apply the ControlName settings in control
Declaration
public override string GetControlName(string controlName)
Parameters
Type |
Name |
Description |
System.String |
controlName |
|
Returns
Overrides
Declaration
protected virtual void OnAlignmentChanged()
Helps to apply the CanApplyTheme settings in control
Declaration
public override void OnCanApplyThemeChanged(bool canApplyTheme)
Parameters
Type |
Name |
Description |
System.Boolean |
canApplyTheme |
|
Overrides
Helps to apply the CanOverriderStyle settings in control
Declaration
public override void OnCanOverrideStyleChanged(bool canOverriderStyle)
Parameters
Type |
Name |
Description |
System.Boolean |
canOverriderStyle |
|
Overrides
Declaration
protected override void OnHandleCreated(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnHandleDestroyed(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
protected virtual void OnPaint2D(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
protected virtual void OnPaint3D(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Helps to apply the ThemeName settings in control
Declaration
public override void OnThemeNameChanged(string themeName)
Parameters
Type |
Name |
Description |
System.String |
themeName |
ThemeName
|
Overrides
Declaration
protected virtual void OnUpDown(UpDownEventArgs upevent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.UpDownEventArgs |
upevent |
|
Declaration
protected void StartTimer()
Declaration
protected void StopTimer()
Events
Declaration
public event UpDownEventHandler UpDown
Event Type
Type |
System.Windows.Forms.UpDownEventHandler |
Implements
System.IDisposable