Class: AsposeCadCloud::TextRenderingHint

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_cad_cloud/models/text_rendering_hint.rb

Constant Summary collapse

SYSTEM_DEFAULT =
"SystemDefault".freeze
SINGLE_BIT_PER_PIXEL_GRID_FIT =
"SingleBitPerPixelGridFit".freeze
SINGLE_BIT_PER_PIXEL =
"SingleBitPerPixel".freeze
ANTI_ALIAS_GRID_FIT =
"AntiAliasGridFit".freeze
ANTI_ALIAS =
"AntiAlias".freeze
CLEAR_TYPE_GRID_FIT =
"ClearTypeGridFit".freeze

Instance Method Summary collapse

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



18
19
20
21
22
# File 'lib/aspose_cad_cloud/models/text_rendering_hint.rb', line 18

def build_from_hash(value)
  constantValues = TextRenderingHint.constants.select{|c| TextRenderingHint::const_get(c) == value}
  raise "Invalid ENUM value #{value} for class #TextRenderingHint" if constantValues.empty?
  value
end