.. role:: ts-api-decorator

###########
TextBoxBase
###########

.. js:module:: Markup.Shapes
   :noindex:

.. container:: ts-api-section

   .. js:class:: TextBoxBase



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~Markup.Shapes.TextBoxBase.getBoxPortion`
   * :js:meth:`~Markup.Shapes.TextBoxBase.getPadding`
   * :js:meth:`~Markup.Shapes.TextBoxBase.getTextPortion`
   * :js:meth:`~Markup.Shapes.TextBoxBase.setPadding`





------------

Methods
=======

.. rst-class:: ts-api-section

getBoxPortion
-------------

.. js:method:: TextBoxBase.getBoxPortion()



   Gets the Box portion of the TextBox. Use the methods on this object to modify the appearance of the rectangle around the text string

   :returns: the rectangle markup object.


   :rtype: RectangleBase

.. rst-class:: ts-api-section

getPadding
----------

.. js:method:: TextBoxBase.getPadding()



   Gets the Pixel distance between the text and outer rectangle

   :returns: the padding value.


   :rtype: number

.. rst-class:: ts-api-section

getTextPortion
--------------

.. js:method:: TextBoxBase.getTextPortion()



   Gets the Text portion of the TextBox. Use the methods on this object to modify the appearance of the text string

   :returns: the text markup object


   :rtype: TextMarkupBase

.. rst-class:: ts-api-section

setPadding
----------

.. js:method:: TextBoxBase.setPadding( padding)

   :param padding: the padding value.
   :type padding: number


   Sets the Pixel distance between the text and outer rectangle


   :rtype: void

