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

Glossary Item Box

Gets the drawing surface control.


Visual Basic (Declaration) 
Public ReadOnly Property DrawingSurface As Control
Visual Basic (Usage)Copy Code
Dim instance As AnnotationModeEventArgs
Dim value As Control
value = instance.DrawingSurface
public Control DrawingSurface {get;}

Property Value

Control object containing the drawing surface control


This example returns the index of the sheet where the text was found.
C#Copy Code
private void fpSpread1AnnotationModeStarting(object sender, FarPoint.Win.Spread.AnnotationModeEventArgs e) 
     e.DrawingSurface.BackColor = Color.Cornsilk; 
Visual BasicCopy Code
Private Sub FpSpread1AnnotationModeStarting(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.AnnotationModeEventArgs)
    e.DrawingSurface.BackColor = Color.Cornsilk
End Sub


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.