ComputeTextInRect Method (String, Int32, Int32, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Computes the size of the rectangular area on the display device needed to render the specified text string.

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.Graphics (in Microsoft.SPOT.Graphics.dll)

Syntax

'Declaration
Public Sub ComputeTextInRect ( _
    text As String, _
    <OutAttribute> ByRef renderWidth As Integer, _
    <OutAttribute> ByRef renderHeight As Integer, _
    availableWidth As Integer _
)
public void ComputeTextInRect(
    string text,
    out int renderWidth,
    out int renderHeight,
    int availableWidth
)
public:
void ComputeTextInRect(
    String^ text, 
    [OutAttribute] int% renderWidth, 
    [OutAttribute] int% renderHeight, 
    int availableWidth
)
member ComputeTextInRect : 
        text:string * 
        renderWidth:int byref * 
        renderHeight:int byref * 
        availableWidth:int -> unit 
public function ComputeTextInRect(
    text : String, 
    renderWidth : int, 
    renderHeight : int, 
    availableWidth : int
)

Parameters

  • renderWidth
    Type: System. . :: . .Int32%
    The width, in pixels, of the rectangular area needed to render the text.
  • renderHeight
    Type: System. . :: . .Int32%
    The height, in pixels, of the rectangular area needed to render the text.
  • availableWidth
    Type: System. . :: . .Int32
    The maximum width of text that will fit in the defined rectangular area.

.NET Framework Security

See Also

Reference

Font Class

ComputeTextInRect Overload

Microsoft.SPOT Namespace