
//Specify the back color for the group indent panel
e.LevelAppearance.BackColor = Color.LemonChiffon;
}
Visual Basic
==================================
A, Amber CHM Converter 7.31
Trial version
================================== 복사 코드
Imports DevExpress.XtraGrid.Views.Base
Imports DevExpress.XtraGrid.Views.Grid
Imports DevExpress.XtraGrid.Views.Grid.ViewInfo
Imports System.Drawing.Drawing2D
Private Sub GridView1_CustomDrawGroupRow (ByVal sender As Object, _
ByVal e As RowObjectCustomDrawEventArgs) Handles GridView1.CustomDrawGroupRow
Dim view As GridView = CType (sender, GridView)
Dim groupRowInfo As GridGroupRowInfo = e.Info
Dim groupRowBounds As Rectangle = groupRowInfo.DataBounds
Dim expandButtonBounds As Rectangle = groupRowInfo.ButtonBounds
Dim textBounds As Rectangle = e.Bounds
textBounds.X = expandButtonBounds.Right + 4
'A brush for the group row.
Dim brush As Brush = e.Cache.GetGradientBrush (groupRowBounds, Color.LemonChiffon, _
Color.Tan, LinearGradientMode.Horizontal)
'A brush for the region containing the expand button.
Dim brushImage As Brush = Brushes.LemonChiffon
'Brushes to draw the text in the group 마법사를
Dim brushText As Brush = Brushes.Black, brushTextShadow As Brush = Brushes.White
If e.RowHandle = view.FocusedRowHandle Then
brush = Brushes.DarkBlue
brushTextShadow = Brushes.DarkBlue
brushText = Brushes.White
End If
'Fill the rectangle of the group 마법사를 without the expand button
e.Graphics.FillRectangle (brush, groupRowBounds)
'Draw a custom expand button
Dim iml As ImageList = imlCustomDrawImages
e.Graphics.DrawImageUnscaled (iml.Images (IIf (view.GetRowExpanded (e.RowHandle), 1, 0)) _
expandButtonBounds)
'Draw the group 마법사를 text
Dim s As String = view.GetGroupRowDisplayText (e.RowHandle)
e.Appearance.DrawString (e.Cache, s, New Rectangle (textBounds.X textBounds.Y + 1 + 1 _
textBounds.Width, textBounds.Height) brushTextShadow)
e.Appearance.DrawString (e.Cache, s, textBounds, brushText)
'Prevent default painting
e.Handled = True
End Sub
Private Sub advBandedGridView1_GroupLevelStyle (ByVal sender As Object, _
ByVal e As GroupLevelStyleEventArgs) Handles advBandedGridView1.GroupLevelStyle
'Specify the back color for the group indent panel
e.LevelAppearance.BackColor = Color.LemonChiffon
End Sub
==================================
A, Amber CHM Converter 7.31
Trial version
==================================
이대로 테마 보내기 피드백 의견.
2000-2010 Developer Express Inc.모든 권리 유보.
[Amber demo]
==================================
A, Amber CHM Converter 7.31
Trial version
====================================================================
A, Amber CHM Converter 7.31
Trial version
====================================================================
A, Amber CHM Converter 7.31
Trial version
====================================================================
A, Amber CHM Converter 7.31
Trial version
====================================================================
A, Amber CHM Converter 7.31
Trial version
====================================================================
A, Amber CHM Converter 7.31
Trial version
====================================================================
A, Amber CHM Converter 7.31
Trial version
====================================================================
A, Amber CHM Converter 7.31
Trial version
==================================
==================================
A, Amber CHM Converter 7.31
Trial version
================================== 모두 접기 모두 펴기 ==================================
A, Amber CHM Converter 7.31
Trial version
================================== 언어 필터: 모든 언어 필터: 이상의 언어 필터: Visual Basic 언어 필터: C# 언어 필터: JScript
Visual 곡선의
