Spread Windows Forms 9.0 Product Documentation
Redraw Property (ElementWindowless)
Example 


Gets or sets whether the element is allowed to paint.
Syntax
'Declaration
 
Public Overridable Property Redraw As Boolean
'Usage
 
Dim instance As ElementWindowless
Dim value As Boolean
 
instance.Redraw = value
 
value = instance.Redraw
public virtual bool Redraw {get; set;}

Property Value

Boolean value: true to redraw; false otherwise
Remarks

Setting this property to false can speed up your application during certain operations. Set this property to false when adding large amounts of data or when making many changes to an element; then when you are finished, reset this property to true. The items on the screen that have changed since this property was set to false are then refreshed.

Note: Even if you set this property to false, some changes might be shown on the screen, depending on the type of changes and the order in which they are made.

This property is available at run time only.

Example
private void button1_Click(object sender, System.EventArgs e)
{
element.Redraw = true;
}
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
element.Redraw = True
End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ElementWindowless Class
ElementWindowless Members

 

 


Copyright © GrapeCity, inc. All rights reserved.