.. role:: ts-api-decorator

##############
TextMarkupBase
##############

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

.. container:: ts-api-section

   .. js:class:: TextMarkupBase

      This is a base class for text markup objects. It should not be created directly.



.. container:: api-index-section

   .. rubric:: Methods

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

   * :js:meth:`~Markup.Shapes.TextMarkupBase.getFillColor`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.getFillOpacity`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.getFontFamily`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.getFontSize`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.getStrokeColor`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.getStrokeWidth`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.setFillColor`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.setFillOpacity`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.setFontFamily`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.setFontSize`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.setStrokeColor`
   * :js:meth:`~Markup.Shapes.TextMarkupBase.setStrokeWidth`





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

Methods
=======

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

getFillColor
------------

.. js:method:: TextMarkupBase.getFillColor()



   Gets the fill color for this shape

   :returns: the fill color


   :rtype: Color

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

getFillOpacity
--------------

.. js:method:: TextMarkupBase.getFillOpacity()



   Gets the fill opacity for this shape

   :returns: the fill opacity


   :rtype: number

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

getFontFamily
-------------

.. js:method:: TextMarkupBase.getFontFamily()



   Gets the font family for this text

   :returns: the font family


   :rtype: null | string

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

getFontSize
-----------

.. js:method:: TextMarkupBase.getFontSize()



   Gets the font size for this text

   :returns: the font size


   :rtype: number

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

getStrokeColor
--------------

.. js:method:: TextMarkupBase.getStrokeColor()



   Gets the stroke color for this shape

   :returns: the stroke color


   :rtype: Color

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

getStrokeWidth
--------------

.. js:method:: TextMarkupBase.getStrokeWidth()



   Gets the stroke width for this shape in pixels

   :returns: the stroke width in pixels


   :rtype: number

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

setFillColor
------------

.. js:method:: TextMarkupBase.setFillColor( color)

   :param color: the fill color
   :type color: Color


   Sets the fill color for this shape


   :rtype: void

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

setFillOpacity
--------------

.. js:method:: TextMarkupBase.setFillOpacity( fillOpacity)

   :param fillOpacity: the fill opacity
   :type fillOpacity: number


   Sets the fill opacity for this shape


   :rtype: void

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

setFontFamily
-------------

.. js:method:: TextMarkupBase.setFontFamily( fontFamily)

   :param fontFamily: font family to use for this text
   :type fontFamily: string


   Sets the font family this shape


   :rtype: void

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

setFontSize
-----------

.. js:method:: TextMarkupBase.setFontSize( fontSize)

   :param fontSize: size to use for this text
   :type fontSize: number


   Sets the font size for this text


   :rtype: void

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

setStrokeColor
--------------

.. js:method:: TextMarkupBase.setStrokeColor( color)

   :param color: the stroke color
   :type color: Color


   Sets the stroke color for this shape


   :rtype: void

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

setStrokeWidth
--------------

.. js:method:: TextMarkupBase.setStrokeWidth( strokeWidth)

   :param strokeWidth: the stroke width in pixels
   :type strokeWidth: number


   Sets the stroke width for this shape in pixels


   :rtype: void

