class_docstr: Define text's property.
  
  Parameters
  ----------
  theme : pyvista.plotting.themes.Theme, optional
      Plot-specific theme.
  
  color : pyvista.ColorLike, optional
      Either a string, RGB list, or hex color string.  For example:
      ``color='white'``, ``color='w'``, ``color=[1.0, 1.0, 1.0]``, or
      ``color='#FFFFFF'``. Color will be overridden if scalars are
      specified.
  
  font_family : str | None, optional
      Font family or None.
  
  orientation : float, optional
      Text's orientation (in degrees).
  
  font_size : int, optional
      Font size.
  
  font_file : str, optional
      Font file path.
  
  shadow : bool, optional
      If enable the shadow.
  
  justification_horizontal : str, optional
      Text's horizontal justification.
      Should be either "left", "center" or "right".
  
  justification_vertical : str, optional
      Text's vertical justification.
      Should be either "bottom", "center" or "top".
  
  italic : bool, default: False
      Italicises title and bar labels.
  
  bold : bool, default: True
      Bolds title and bar labels.
  
  background_color : pyvista.Color, optional
      Background color of text.
  
  background_opacity : pyvista.Color, optional
      Background opacity of text.
  
  Examples
  --------
  Create a text's property.
  
  >>> from pyvista import TextProperty
  >>> prop = TextProperty()
  >>> prop.opacity = 0.5
  >>> prop.background_color = "b"
  >>> prop.background_opacity = 0.5
  >>> prop.show_frame = True
  >>> prop.frame_color = "b"
  >>> prop.frame_width = 10
  >>> prop.frame_color
  Color(name='blue', hex='#0000ffff', opacity=255)
class_docstr_tok: ["Define","text","'s","property",".","Parameters","--","--","--","--","--","theme",":","pyvista.plotting.themes.Theme",",","optional","Plot-specific","theme",".","color",":","pyvista.ColorLike",",","optional","Either","a","string",",","RGB","list",",","or","hex","color","string",".","For","example",":","``","color='white","'","``",",","``","color=","'","w","'","``",",","``","color=","[","1.0",",","1.0",",","1.0","]","``",",","or","``","color=","'","#","FFFFFF","'","``",".","Color","will","be","overridden","if","scalars","are","specified",".","font_family",":","str","|","None",",","optional","Font","family","or","None",".","orientation",":","float",",","optional","Text","'s","orientation","(","in","degrees",")",".","font_size",":","int",",","optional","Font","size",".","font_file",":","str",",","optional","Font","file","path",".","shadow",":","bool",",","optional","If","enable","the","shadow",".","justification_horizontal",":","str",",","optional","Text","'s","horizontal","justification",".","Should","be","either","``","left","''",",","``","center","''","or","``","right","''",".","justification_vertical",":","str",",","optional","Text","'s","vertical","justification",".","Should","be","either","``","bottom","''",",","``","center","''","or","``","top","''",".","italic",":","bool",",","default",":","False","Italicises","title","and","bar","labels",".","bold",":","bool",",","default",":","True","Bolds","title","and","bar","labels",".","background_color",":","pyvista.Color",",","optional","Background","color","of","text",".","background_opacity",":","pyvista.Color",",","optional","Background","opacity","of","text",".","Examples","--","--","--","--","Create","a","text","'s","property",".",">",">",">","from","pyvista","import","TextProperty",">",">",">","prop","=","TextProperty","(",")",">",">",">","prop.opacity","=","0.5",">",">",">","prop.background_color","=","``","b","''",">",">",">","prop.background_opacity","=","0.5",">",">",">","prop.show_frame","=","True",">",">",">","prop.frame_color","=","``","b","''",">",">",">","prop.frame_width","=","10",">",">",">","prop.frame_color","Color","(","name='blue","'",",","hex=","'","#","0000ffff","'",",","opacity=255",")"]
docstr: Italic of text's property.
  
  Returns
  -------
  bool
      If text is italic.
code: def italic(self) -> bool:
      """Italic of text's property.
  
      Returns
      -------
      bool
          If text is italic.
  
      """
      return self.GetItalic()
  
imports: from __future__ import annotations
  import os
  import pathlib
  from typing import Sequence
  import pyvista
  from pyvista.core.utilities.misc import _check_range, no_new_attr
  from .None import _vtk
  from ._typing import ColorLike
  from .colors import Color
  from .themes import Theme
  from .tools import FONTS
label_desc: Use image node_id 28 for calling the TextProperty obj's underlying member method code with example usage: obj.italic() and returns: self