Share via


InPlaceTextEditor.SetFont Method

Sets the font for this editor.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.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

  • familyName
    Type: String
  • emSize
    Type: Single
  • style
    Type: FontStyle
  • unit
    Type: GraphicsUnit

.NET Framework Security

See Also

Reference

InPlaceTextEditor Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace