Ribbon for WinForms
DrawToGraphics(Graphics,Rectangle) メソッド
使用例 

C1.Win.8 アセンブリ > C1.Win.SuperTooltip 名前空間 > C1SuperLabelBase クラス > DrawToGraphics メソッド : DrawToGraphics(Graphics,Rectangle) メソッド
System.Drawing.Graphics object where the content will be rendered.
System.Drawing.Rectangle that specifies the bounds where the content will be rendered.
Draws the control content into a given System.Drawing.Graphics object.
シンタックス
'宣言
 
Public Overloads Sub DrawToGraphics( _
   ByVal g As Graphics, _
   ByVal bounds As Rectangle _
) 
public void DrawToGraphics( 
   Graphics g,
   Rectangle bounds
)

パラメータ

g
System.Drawing.Graphics object where the content will be rendered.
bounds
System.Drawing.Rectangle that specifies the bounds where the content will be rendered.
使用例
The example below uses the DrawToGraphics method to render Html in a C1FlexGrid control. Grid cells containing text that starts with an <html> tag are rendered as Html. Other cells are rendered by the grid as usual.
void _flex_OwnerDrawCell(object sender, OwnerDrawCellEventArgs e)
{
  // get cell content
  string text = _flex.GetDataDisplay(e.Row, e.Col);
            
  // check that the cell contains html
  if (!string.IsNullOrEmpty(text) &&
       text.StartsWith("<html>"))
  {
    // set label back color and content
    _superLabel.BackColor = e.Style.BackColor;
    _superLabel.Text = text;
            
    // draw the Html into grid cell
    _superLabel.DrawToGraphics(e.Graphics, e.Bounds);
            
    // cell has been drawn
    e.Handled = true;
  }
}
参照

C1SuperLabelBase クラス
C1SuperLabelBase メンバ
オーバーロード一覧