ComputeTextInRect Method (String, Int32, Int32, Int32, Int32, Int32, Int32, UInt32)

[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, _
    xRelStart As Integer, _
    yRelStart As Integer, _
    availableWidth As Integer, _
    availableHeight As Integer, _
    dtFlags As UInteger _
)
public void ComputeTextInRect(
    string text,
    out int renderWidth,
    out int renderHeight,
    int xRelStart,
    int yRelStart,
    int availableWidth,
    int availableHeight,
    uint dtFlags
)
public:
void ComputeTextInRect(
    String^ text, 
    [OutAttribute] int% renderWidth, 
    [OutAttribute] int% renderHeight, 
    int xRelStart, 
    int yRelStart, 
    int availableWidth, 
    int availableHeight, 
    unsigned int dtFlags
)
member ComputeTextInRect : 
        text:string * 
        renderWidth:int byref * 
        renderHeight:int byref * 
        xRelStart:int * 
        yRelStart:int * 
        availableWidth:int * 
        availableHeight:int * 
        dtFlags:uint32 -> unit 
public function ComputeTextInRect(
    text : String, 
    renderWidth : int, 
    renderHeight : int, 
    xRelStart : int, 
    yRelStart : int, 
    availableWidth : int, 
    availableHeight : int, 
    dtFlags : uint
)

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.
  • availableHeight
    Type: System. . :: . .Int32
    The maximum height of text that will fit in the defined rectangular area.

.NET Framework Security

See Also

Reference

Font Class

ComputeTextInRect Overload

Microsoft.SPOT Namespace