 import flashx.textLayout.elements.IConfiguration;
 import flashx.textLayout.elements.ParagraphElement;
 import flashx.textLayout.elements.TextFlow;
+import flashx.textLayout.elements.TextRange;
 import flashx.textLayout.events.SelectionEvent;
 import flashx.textLayout.formats.Category;
 import flashx.textLayout.formats.ITextLayoutFormat;

        
        var operationState:SelectionState =
            new SelectionState(textFlow, anchorPosition, activePosition);
        
        // On point selection remember pending formats for next char typed.
        operationState.selectionManagerOperationState = true;
        
        var op:ApplyFormatOperation = 
            new ApplyFormatOperation(
                operationState, leafFormat, paragraphFormat, containerFormat);

        return success;
    }

    /**
     *  Note:  It is probably a TLF bug that, if delayedUpdates is true, we have to call 
     *  updateAllControllers before doing a format operation to guarantee the correct
     *  results.
     */
    mx_internal function getTextFlowWithComposer():TextFlow
    {
        var textFlow:TextFlow = getTextFlow();
