Class: OpenXml::DrawingML::Properties::ColorXformAlphaOffset

Inherits:
ValueProperty
  • Object
show all
Defined in:
lib/openxml/drawingml/properties/color_xform_alpha_offset.rb

Instance Method Summary collapse

Instance Method Details

#invalid_messageObject



12
13
14
# File 'lib/openxml/drawingml/properties/color_xform_alpha_offset.rb', line 12

def invalid_message
  "#{value.inspect} is an invalid value for #{name}; it must be a percentage between -100% and 100%"
end

#valid?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/openxml/drawingml/properties/color_xform_alpha_offset.rb', line 8

def valid?
  value =~ OpenXml::DrawingML::ST_FixedPercentage
end