Some properties for rows
This commit is contained in:
parent
9447a66acd
commit
dcb5cc3a6b
|
@ -1555,6 +1555,9 @@ class LOSheetForms(object):
|
|||
return self._obj
|
||||
|
||||
|
||||
# ~ IsFiltered,
|
||||
# ~ IsManualPageBreak,
|
||||
# ~ IsStartOfNewPage
|
||||
class LOSheetRows(object):
|
||||
|
||||
def __init__(self, sheet, obj):
|
||||
|
@ -1583,10 +1586,40 @@ class LOSheetRows(object):
|
|||
def visible(self, value):
|
||||
self._obj.IsVisible = value
|
||||
|
||||
@property
|
||||
def color(self):
|
||||
return self.obj.CellBackColor
|
||||
@color.setter
|
||||
def color(self, value):
|
||||
self.obj.CellBackColor = value
|
||||
|
||||
@property
|
||||
def is_transparent(self):
|
||||
return self.obj.IsCellBackgroundTransparent
|
||||
@is_transparent.setter
|
||||
def is_transparent(self, value):
|
||||
self.obj.IsCellBackgroundTransparent = value
|
||||
|
||||
@property
|
||||
def height(self):
|
||||
return self.obj.Height
|
||||
@height.setter
|
||||
def height(self, value):
|
||||
self.obj.Height = value
|
||||
|
||||
def optimal(self):
|
||||
self.obj.OptimalHeight = True
|
||||
return
|
||||
|
||||
def insert(self, index, count):
|
||||
self.obj.insertByIndex(index, count)
|
||||
end = index + count
|
||||
return #self._sheet[index:end,0:]
|
||||
return
|
||||
|
||||
def remove(self, index, count):
|
||||
self.obj.removeByIndex(index, count)
|
||||
return
|
||||
|
||||
|
||||
|
||||
|
||||
class LOCalcSheet(object):
|
||||
|
@ -1687,6 +1720,10 @@ class LOCalcSheet(object):
|
|||
def rows(self):
|
||||
return LOSheetRows(self, self.obj.Rows)
|
||||
|
||||
@property
|
||||
def columns(self):
|
||||
return LOSheetColumns(self, self.obj.Columns)
|
||||
|
||||
@property
|
||||
def forms(self):
|
||||
return LOSheetForms(self.obj.DrawPage.Forms)
|
||||
|
|
Loading…
Reference in New Issue