Spread Windows Forms 6.0 Product Documentation
PaintCorner Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > CornerRenderer Class : PaintCorner Method


g
Graphics device interface for painting the corner cell
r
Location and size of a rectangular region for painting the corner cell
backColor
Background color of the corner cell
foreColor
Foreground color of the corner cell
f
Font
horizontalAlignment
Horizontal alignment of corner cell content
verticalAlignment
Vertical alignment of the corner cell content
s
String to paint
textOrientation
Orientation of the text
wordWrap
Whether wrap words to multiple lines
hotkeyPrefix
Whether to show hotkey effect
stringTrim
String trimming mode
visualStyles
Visual styles
mouseOver
Whether the mouse is over the corner cell
rightToLeft
Whether to display right to left
zoomFactor
Numeric value for scaling the display of the corner cell

Glossary Item Box

Paints the corner cell.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub PaintCorner( _
   ByVal g As Graphics, _
   ByVal r As Rectangle, _
   ByVal backColor As Color, _
   ByVal foreColor As Color, _
   ByVal f As Font, _
   ByVal horizontalAlignment As HorizontalAlignment, _
   ByVal verticalAlignment As VerticalAlignment, _
   ByVal s As String, _
   ByVal textOrientation As TextOrientation, _
   ByVal wordWrap As Boolean, _
   ByVal hotkeyPrefix As HotkeyPrefix, _
   ByVal stringTrim As StringTrimming, _
   ByVal visualStyles As VisualStyles, _
   ByVal mouseOver As Boolean, _
   ByVal rightToLeft As Boolean, _
   ByVal zoomFactor As Single _
) 
Visual Basic (Usage)Copy Code
Dim instance As CornerRenderer
Dim g As Graphics
Dim r As Rectangle
Dim backColor As Color
Dim foreColor As Color
Dim f As Font
Dim horizontalAlignment As HorizontalAlignment
Dim verticalAlignment As VerticalAlignment
Dim s As String
Dim textOrientation As TextOrientation
Dim wordWrap As Boolean
Dim hotkeyPrefix As HotkeyPrefix
Dim stringTrim As StringTrimming
Dim visualStyles As VisualStyles
Dim mouseOver As Boolean
Dim rightToLeft As Boolean
Dim zoomFactor As Single
 
instance.PaintCorner(g, r, backColor, foreColor, f, horizontalAlignment, verticalAlignment, s, textOrientation, wordWrap, hotkeyPrefix, stringTrim, visualStyles, mouseOver, rightToLeft, zoomFactor)

Parameters

g
Graphics device interface for painting the corner cell
r
Location and size of a rectangular region for painting the corner cell
backColor
Background color of the corner cell
foreColor
Foreground color of the corner cell
f
Font
horizontalAlignment
Horizontal alignment of corner cell content
verticalAlignment
Vertical alignment of the corner cell content
s
String to paint
textOrientation
Orientation of the text
wordWrap
Whether wrap words to multiple lines
hotkeyPrefix
Whether to show hotkey effect
stringTrim
String trimming mode
visualStyles
Visual styles
mouseOver
Whether the mouse is over the corner cell
rightToLeft
Whether to display right to left
zoomFactor
Numeric value for scaling the display of the corner cell

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.