Spread Windows Forms 6.0 Product Documentation
Redraw Property
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > ElementWindowless Class : Redraw Property


Glossary Item Box

Gets or sets whether the element is allowed to paint.

Syntax

Visual Basic (Declaration) 
Public Overridable Property Redraw As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ElementWindowless
Dim value As Boolean
 
instance.Redraw = value
 
value = instance.Redraw
C# 
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

csharpCopy Code
private void button1_Click(object sender, System.EventArgs e)
{
element.Redraw = true;
}
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.