Class: Excel::Alignment

Inherits:
Object
  • Object
show all
Defined in:
lib/ru_excel/formatting.rb

Constant Summary collapse

HORZ_GENERAL =
0x00
HORZ_LEFT =
0x01
HORZ_CENTER =
0x02
HORZ_RIGHT =
0x03
HORZ_FILLED =
0x04
HORZ_JUSTIFIED =

BIFF4-BIFF8X

0x05
HORZ_CENTER_ACROSS_SEL =

Centred across selection (BIFF4-BIFF8X)

0x06
HORZ_DISTRIBUTED =

Distributed (BIFF8X)

0x07
VERT_TOP =
0x00
VERT_CENTER =
0x01
VERT_BOTTOM =
0x02
VERT_JUSTIFIED =

Justified (BIFF5-BIFF8X)

0x03
VERT_DISIRIBUTED =

Distributed (BIFF8X)

0x04
DIRECTION_GENERAL =

BIFF8X

0x00
DIRECTION_LR =
0x01
DIRECTION_RL =
0x02
ORIENTATION_NOT_ROTATED =
0x00
ORIENTATION_STACKED =
0x01
ORIENTATION_90_CC =
0x02
ORIENTATION_90_CW =
0x03
ROTATION_0_ANGLE =
0x00
ROTATION_STACKED =
0xFF
WRAP_AT_RIGHT =
0x01
NOT_WRAP_AT_RIGHT =
0x00
SHRINK_TO_FIT =
0x01
NOT_SHRINK_TO_FIT =
0x00

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAlignment

Returns a new instance of Alignment.



154
155
156
157
158
159
160
161
162
163
164
165
# File 'lib/ru_excel/formatting.rb', line 154

def initialize
    @horz = HORZ_GENERAL
    @vert = VERT_BOTTOM
    @dire = DIRECTION_GENERAL
    @orie = ORIENTATION_NOT_ROTATED
    @rota = ROTATION_0_ANGLE
    @wrap = NOT_WRAP_AT_RIGHT
#        @wrap = WRAP_AT_RIGHT
    @shri = NOT_SHRINK_TO_FIT
    @inde = 0
    @merg = 0
end

Instance Attribute Details

#direObject

Returns the value of attribute dire.



166
167
168
# File 'lib/ru_excel/formatting.rb', line 166

def dire
  @dire
end

#horzObject

Returns the value of attribute horz.



166
167
168
# File 'lib/ru_excel/formatting.rb', line 166

def horz
  @horz
end

#indeObject

Returns the value of attribute inde.



166
167
168
# File 'lib/ru_excel/formatting.rb', line 166

def inde
  @inde
end

#mergObject

Returns the value of attribute merg.



166
167
168
# File 'lib/ru_excel/formatting.rb', line 166

def merg
  @merg
end

#orieObject

Returns the value of attribute orie.



166
167
168
# File 'lib/ru_excel/formatting.rb', line 166

def orie
  @orie
end

#rotaObject

Returns the value of attribute rota.



166
167
168
# File 'lib/ru_excel/formatting.rb', line 166

def rota
  @rota
end

#shriObject

Returns the value of attribute shri.



166
167
168
# File 'lib/ru_excel/formatting.rb', line 166

def shri
  @shri
end

#vertObject

Returns the value of attribute vert.



166
167
168
# File 'lib/ru_excel/formatting.rb', line 166

def vert
  @vert
end

#wrapObject

Returns the value of attribute wrap.



166
167
168
# File 'lib/ru_excel/formatting.rb', line 166

def wrap
  @wrap
end