Class ScrollTipWindow
A ScrollTip window is a top-level window that gives feedback about the current scroll position when the user grabs a scrollbar thumb and drags it.
Namespace: Syncfusion.Windows.Forms
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class ScrollTipWindow : TopLevelWindow
Constructors
ScrollTipWindow()
Initializes a new ScrollTipWindow.
Declaration
public ScrollTipWindow()
Properties
BorderStyle
Gets / sets the border style of the control.
Declaration
public BorderStyle BorderStyle { get; set; }
Property Value
Type |
---|
System.Windows.Forms.BorderStyle |
CreateParams
Declaration
protected override CreateParams CreateParams { get; }
Property Value
Type |
---|
System.Windows.Forms.CreateParams |
Format
Gets / sets the text layout information for the text in the ScrollTip.
Declaration
public StringFormat Format { get; set; }
Property Value
Type |
---|
System.Drawing.StringFormat |
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
GetPreferredSize(String)
Returns the optimal size for the window to fit the given text.
Declaration
public Size GetPreferredSize(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text that should fit into the window. |
Returns
Type | Description |
---|---|
System.Drawing.Size | A System.Drawing.Size with the window size of the ScrollTip. |
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs pe)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.PaintEventArgs | pe |
OnTextChanged(EventArgs)
Raises the System.Windows.Forms.Control.TextChanged event and refreshes the contents of the window.
Declaration
protected override void OnTextChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.EventArgs with event data. |