Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / AnnotationModeEventArgs Class / DrawingSurface Property
Example


In This Topic
    DrawingSurface Property
    In This Topic
    Gets the drawing surface control.
    Syntax
    'Declaration
     
    Public ReadOnly Property DrawingSurface As Control
    'Usage
     
    Dim instance As AnnotationModeEventArgs
    Dim value As Control
     
    value = instance.DrawingSurface
    public Control DrawingSurface {get;}

    Property Value

    Control object containing the drawing surface control
    Example
    This example returns the index of the sheet where the text was found.
    private void fpSpread1AnnotationModeStarting(object sender, FarPoint.Win.Spread.AnnotationModeEventArgs e) 
    { 
         e.DrawingSurface.BackColor = Color.Cornsilk; 
    }
    
    Private Sub FpSpread1AnnotationModeStarting(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.AnnotationModeEventArgs)
        e.DrawingSurface.BackColor = Color.Cornsilk
    End Sub
    See Also