VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging Namespace / WebTextRegionJS type / getSubregion Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    getSubregion Method
    In This Topic
    Returns a subregion of this text region.
    Syntax
    var instance = new Vintasoft.Imaging.WebTextRegionJS(textContent, selectionRegions, subRegions, symbols, trasfromFromDipSpace);
    
    var value; // Type: Vintasoft.Imaging.WebTextRegionJS
    
    // Parameters
    var rect; // Type: object
    var selectionMode; // Type: WebTextSelectionModeEnumJS
    
    value = instance.getSubregion(rect, selectionMode);
    
    
    function getSubregion(
    rect
    Location and size of subregion.
    : object,
    selectionMode
    An instance of WebTextSelectionModeEnumJS class that defines the selection mode for subregion.
    : WebTextSelectionModeEnumJS
    ) : WebTextRegionJS;

    Parameters

    rect
    Location and size of subregion.
    selectionMode
    An instance of WebTextSelectionModeEnumJS class that defines the selection mode for subregion.

    Return Value

    WebTextRegionJS object, which defines the subregion of this text region OR null if subregion does not exist.
    Exceptions
    ExceptionDescription
    Thrown if arguments have wrong types.
    Browser Compatibility
    56+
    45+
    11
    See Also