DataGrid.CaptionFont Propriedade

Definição

Obtém ou define a fonte da legenda da grade.

public:
 property System::Drawing::Font ^ CaptionFont { System::Drawing::Font ^ get(); void set(System::Drawing::Font ^ value); };
public System.Drawing.Font CaptionFont { get; set; }
member this.CaptionFont : System.Drawing.Font with get, set
Public Property CaptionFont As Font

Valor da propriedade

Font

Um Font que representa a fonte da legenda.

Exemplos

O exemplo de código a seguir define a fonte da legenda usando um Font objeto.

Private Sub SetCaptionFont(ByRef myGrid As DataGrid, newFont As System.Drawing.Font)
    myGrid.CaptionFont = newFont
 End Sub

Comentários

Um Font encapsula uma fonte Windows e fornece os métodos para manipular essa fonte.

Aplica-se a

Confira também