Partager via


InPlaceTextEditor.SetFont Method

Sets the font for this editor.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Sub SetFont ( _
    familyName As String, _
    emSize As Single, _
    style As FontStyle, _
    unit As GraphicsUnit, _
    view As DiagramClientView _
)
public void SetFont(
    string familyName,
    float emSize,
    FontStyle style,
    GraphicsUnit unit,
    DiagramClientView view
)
public:
void SetFont(
    String^ familyName, 
    float emSize, 
    FontStyle style, 
    GraphicsUnit unit, 
    DiagramClientView^ view
)
member SetFont : 
        familyName:string * 
        emSize:float32 * 
        style:FontStyle * 
        unit:GraphicsUnit * 
        view:DiagramClientView -> unit
public function SetFont(
    familyName : String, 
    emSize : float, 
    style : FontStyle, 
    unit : GraphicsUnit, 
    view : DiagramClientView
)

Parameters

.NET Framework Security

See Also

Reference

InPlaceTextEditor Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace