mirror of
https://github.com/openshift/installer.git
synced 2026-02-06 00:48:45 +01:00
760 lines
25 KiB
Go
760 lines
25 KiB
Go
package models
|
|
|
|
import (
|
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
|
|
)
|
|
|
|
// WorkbookRange
|
|
type WorkbookRange struct {
|
|
Entity
|
|
}
|
|
// NewWorkbookRange instantiates a new WorkbookRange and sets the default values.
|
|
func NewWorkbookRange()(*WorkbookRange) {
|
|
m := &WorkbookRange{
|
|
Entity: *NewEntity(),
|
|
}
|
|
return m
|
|
}
|
|
// CreateWorkbookRangeFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
|
|
func CreateWorkbookRangeFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
|
|
return NewWorkbookRange(), nil
|
|
}
|
|
// GetAddress gets the address property value. Represents the range reference in A1-style. Address value will contain the Sheet reference (e.g. Sheet1!A1:B4). Read-only.
|
|
func (m *WorkbookRange) GetAddress()(*string) {
|
|
val, err := m.GetBackingStore().Get("address")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*string)
|
|
}
|
|
return nil
|
|
}
|
|
// GetAddressLocal gets the addressLocal property value. Represents range reference for the specified range in the language of the user. Read-only.
|
|
func (m *WorkbookRange) GetAddressLocal()(*string) {
|
|
val, err := m.GetBackingStore().Get("addressLocal")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*string)
|
|
}
|
|
return nil
|
|
}
|
|
// GetCellCount gets the cellCount property value. Number of cells in the range. Read-only.
|
|
func (m *WorkbookRange) GetCellCount()(*int32) {
|
|
val, err := m.GetBackingStore().Get("cellCount")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*int32)
|
|
}
|
|
return nil
|
|
}
|
|
// GetColumnCount gets the columnCount property value. Represents the total number of columns in the range. Read-only.
|
|
func (m *WorkbookRange) GetColumnCount()(*int32) {
|
|
val, err := m.GetBackingStore().Get("columnCount")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*int32)
|
|
}
|
|
return nil
|
|
}
|
|
// GetColumnHidden gets the columnHidden property value. Represents if all columns of the current range are hidden.
|
|
func (m *WorkbookRange) GetColumnHidden()(*bool) {
|
|
val, err := m.GetBackingStore().Get("columnHidden")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*bool)
|
|
}
|
|
return nil
|
|
}
|
|
// GetColumnIndex gets the columnIndex property value. Represents the column number of the first cell in the range. Zero-indexed. Read-only.
|
|
func (m *WorkbookRange) GetColumnIndex()(*int32) {
|
|
val, err := m.GetBackingStore().Get("columnIndex")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*int32)
|
|
}
|
|
return nil
|
|
}
|
|
// GetFieldDeserializers the deserialization information for the current model
|
|
func (m *WorkbookRange) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
|
|
res := m.Entity.GetFieldDeserializers()
|
|
res["address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetStringValue()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetAddress(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["addressLocal"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetStringValue()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetAddressLocal(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["cellCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetInt32Value()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetCellCount(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["columnCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetInt32Value()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetColumnCount(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["columnHidden"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetBoolValue()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetColumnHidden(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["columnIndex"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetInt32Value()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetColumnIndex(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["format"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateWorkbookRangeFormatFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetFormat(val.(WorkbookRangeFormatable))
|
|
}
|
|
return nil
|
|
}
|
|
res["formulas"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateJsonFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetFormulas(val.(Jsonable))
|
|
}
|
|
return nil
|
|
}
|
|
res["formulasLocal"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateJsonFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetFormulasLocal(val.(Jsonable))
|
|
}
|
|
return nil
|
|
}
|
|
res["formulasR1C1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateJsonFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetFormulasR1C1(val.(Jsonable))
|
|
}
|
|
return nil
|
|
}
|
|
res["hidden"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetBoolValue()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetHidden(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["numberFormat"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateJsonFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetNumberFormat(val.(Jsonable))
|
|
}
|
|
return nil
|
|
}
|
|
res["rowCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetInt32Value()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetRowCount(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["rowHidden"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetBoolValue()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetRowHidden(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["rowIndex"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetInt32Value()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetRowIndex(val)
|
|
}
|
|
return nil
|
|
}
|
|
res["sort"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateWorkbookRangeSortFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetSort(val.(WorkbookRangeSortable))
|
|
}
|
|
return nil
|
|
}
|
|
res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateJsonFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetText(val.(Jsonable))
|
|
}
|
|
return nil
|
|
}
|
|
res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateJsonFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetValues(val.(Jsonable))
|
|
}
|
|
return nil
|
|
}
|
|
res["valueTypes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateJsonFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetValueTypes(val.(Jsonable))
|
|
}
|
|
return nil
|
|
}
|
|
res["worksheet"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
|
|
val, err := n.GetObjectValue(CreateWorkbookWorksheetFromDiscriminatorValue)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if val != nil {
|
|
m.SetWorksheet(val.(WorkbookWorksheetable))
|
|
}
|
|
return nil
|
|
}
|
|
return res
|
|
}
|
|
// GetFormat gets the format property value. Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only.
|
|
func (m *WorkbookRange) GetFormat()(WorkbookRangeFormatable) {
|
|
val, err := m.GetBackingStore().Get("format")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(WorkbookRangeFormatable)
|
|
}
|
|
return nil
|
|
}
|
|
// GetFormulas gets the formulas property value. Represents the formula in A1-style notation.
|
|
func (m *WorkbookRange) GetFormulas()(Jsonable) {
|
|
val, err := m.GetBackingStore().Get("formulas")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(Jsonable)
|
|
}
|
|
return nil
|
|
}
|
|
// GetFormulasLocal gets the formulasLocal property value. Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German.
|
|
func (m *WorkbookRange) GetFormulasLocal()(Jsonable) {
|
|
val, err := m.GetBackingStore().Get("formulasLocal")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(Jsonable)
|
|
}
|
|
return nil
|
|
}
|
|
// GetFormulasR1C1 gets the formulasR1C1 property value. Represents the formula in R1C1-style notation.
|
|
func (m *WorkbookRange) GetFormulasR1C1()(Jsonable) {
|
|
val, err := m.GetBackingStore().Get("formulasR1C1")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(Jsonable)
|
|
}
|
|
return nil
|
|
}
|
|
// GetHidden gets the hidden property value. Represents if all cells of the current range are hidden. Read-only.
|
|
func (m *WorkbookRange) GetHidden()(*bool) {
|
|
val, err := m.GetBackingStore().Get("hidden")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*bool)
|
|
}
|
|
return nil
|
|
}
|
|
// GetNumberFormat gets the numberFormat property value. Represents Excel's number format code for the given cell.
|
|
func (m *WorkbookRange) GetNumberFormat()(Jsonable) {
|
|
val, err := m.GetBackingStore().Get("numberFormat")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(Jsonable)
|
|
}
|
|
return nil
|
|
}
|
|
// GetRowCount gets the rowCount property value. Returns the total number of rows in the range. Read-only.
|
|
func (m *WorkbookRange) GetRowCount()(*int32) {
|
|
val, err := m.GetBackingStore().Get("rowCount")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*int32)
|
|
}
|
|
return nil
|
|
}
|
|
// GetRowHidden gets the rowHidden property value. Represents if all rows of the current range are hidden.
|
|
func (m *WorkbookRange) GetRowHidden()(*bool) {
|
|
val, err := m.GetBackingStore().Get("rowHidden")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*bool)
|
|
}
|
|
return nil
|
|
}
|
|
// GetRowIndex gets the rowIndex property value. Returns the row number of the first cell in the range. Zero-indexed. Read-only.
|
|
func (m *WorkbookRange) GetRowIndex()(*int32) {
|
|
val, err := m.GetBackingStore().Get("rowIndex")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(*int32)
|
|
}
|
|
return nil
|
|
}
|
|
// GetSort gets the sort property value. The worksheet containing the current range. Read-only.
|
|
func (m *WorkbookRange) GetSort()(WorkbookRangeSortable) {
|
|
val, err := m.GetBackingStore().Get("sort")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(WorkbookRangeSortable)
|
|
}
|
|
return nil
|
|
}
|
|
// GetText gets the text property value. Text values of the specified range. The Text value will not depend on the cell width. The # sign substitution that happens in Excel UI will not affect the text value returned by the API. Read-only.
|
|
func (m *WorkbookRange) GetText()(Jsonable) {
|
|
val, err := m.GetBackingStore().Get("text")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(Jsonable)
|
|
}
|
|
return nil
|
|
}
|
|
// GetValues gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string.
|
|
func (m *WorkbookRange) GetValues()(Jsonable) {
|
|
val, err := m.GetBackingStore().Get("values")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(Jsonable)
|
|
}
|
|
return nil
|
|
}
|
|
// GetValueTypes gets the valueTypes property value. Represents the type of data of each cell. The possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. Read-only.
|
|
func (m *WorkbookRange) GetValueTypes()(Jsonable) {
|
|
val, err := m.GetBackingStore().Get("valueTypes")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(Jsonable)
|
|
}
|
|
return nil
|
|
}
|
|
// GetWorksheet gets the worksheet property value. The worksheet containing the current range. Read-only.
|
|
func (m *WorkbookRange) GetWorksheet()(WorkbookWorksheetable) {
|
|
val, err := m.GetBackingStore().Get("worksheet")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if val != nil {
|
|
return val.(WorkbookWorksheetable)
|
|
}
|
|
return nil
|
|
}
|
|
// Serialize serializes information the current object
|
|
func (m *WorkbookRange) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
|
|
err := m.Entity.Serialize(writer)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
{
|
|
err = writer.WriteStringValue("address", m.GetAddress())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteStringValue("addressLocal", m.GetAddressLocal())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteInt32Value("cellCount", m.GetCellCount())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteInt32Value("columnCount", m.GetColumnCount())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteBoolValue("columnHidden", m.GetColumnHidden())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteInt32Value("columnIndex", m.GetColumnIndex())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("format", m.GetFormat())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("formulas", m.GetFormulas())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("formulasLocal", m.GetFormulasLocal())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("formulasR1C1", m.GetFormulasR1C1())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteBoolValue("hidden", m.GetHidden())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("numberFormat", m.GetNumberFormat())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteInt32Value("rowCount", m.GetRowCount())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteBoolValue("rowHidden", m.GetRowHidden())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteInt32Value("rowIndex", m.GetRowIndex())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("sort", m.GetSort())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("text", m.GetText())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("values", m.GetValues())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("valueTypes", m.GetValueTypes())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
{
|
|
err = writer.WriteObjectValue("worksheet", m.GetWorksheet())
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
// SetAddress sets the address property value. Represents the range reference in A1-style. Address value will contain the Sheet reference (e.g. Sheet1!A1:B4). Read-only.
|
|
func (m *WorkbookRange) SetAddress(value *string)() {
|
|
err := m.GetBackingStore().Set("address", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetAddressLocal sets the addressLocal property value. Represents range reference for the specified range in the language of the user. Read-only.
|
|
func (m *WorkbookRange) SetAddressLocal(value *string)() {
|
|
err := m.GetBackingStore().Set("addressLocal", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetCellCount sets the cellCount property value. Number of cells in the range. Read-only.
|
|
func (m *WorkbookRange) SetCellCount(value *int32)() {
|
|
err := m.GetBackingStore().Set("cellCount", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetColumnCount sets the columnCount property value. Represents the total number of columns in the range. Read-only.
|
|
func (m *WorkbookRange) SetColumnCount(value *int32)() {
|
|
err := m.GetBackingStore().Set("columnCount", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetColumnHidden sets the columnHidden property value. Represents if all columns of the current range are hidden.
|
|
func (m *WorkbookRange) SetColumnHidden(value *bool)() {
|
|
err := m.GetBackingStore().Set("columnHidden", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetColumnIndex sets the columnIndex property value. Represents the column number of the first cell in the range. Zero-indexed. Read-only.
|
|
func (m *WorkbookRange) SetColumnIndex(value *int32)() {
|
|
err := m.GetBackingStore().Set("columnIndex", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetFormat sets the format property value. Returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only.
|
|
func (m *WorkbookRange) SetFormat(value WorkbookRangeFormatable)() {
|
|
err := m.GetBackingStore().Set("format", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetFormulas sets the formulas property value. Represents the formula in A1-style notation.
|
|
func (m *WorkbookRange) SetFormulas(value Jsonable)() {
|
|
err := m.GetBackingStore().Set("formulas", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetFormulasLocal sets the formulasLocal property value. Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German.
|
|
func (m *WorkbookRange) SetFormulasLocal(value Jsonable)() {
|
|
err := m.GetBackingStore().Set("formulasLocal", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetFormulasR1C1 sets the formulasR1C1 property value. Represents the formula in R1C1-style notation.
|
|
func (m *WorkbookRange) SetFormulasR1C1(value Jsonable)() {
|
|
err := m.GetBackingStore().Set("formulasR1C1", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetHidden sets the hidden property value. Represents if all cells of the current range are hidden. Read-only.
|
|
func (m *WorkbookRange) SetHidden(value *bool)() {
|
|
err := m.GetBackingStore().Set("hidden", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetNumberFormat sets the numberFormat property value. Represents Excel's number format code for the given cell.
|
|
func (m *WorkbookRange) SetNumberFormat(value Jsonable)() {
|
|
err := m.GetBackingStore().Set("numberFormat", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetRowCount sets the rowCount property value. Returns the total number of rows in the range. Read-only.
|
|
func (m *WorkbookRange) SetRowCount(value *int32)() {
|
|
err := m.GetBackingStore().Set("rowCount", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetRowHidden sets the rowHidden property value. Represents if all rows of the current range are hidden.
|
|
func (m *WorkbookRange) SetRowHidden(value *bool)() {
|
|
err := m.GetBackingStore().Set("rowHidden", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetRowIndex sets the rowIndex property value. Returns the row number of the first cell in the range. Zero-indexed. Read-only.
|
|
func (m *WorkbookRange) SetRowIndex(value *int32)() {
|
|
err := m.GetBackingStore().Set("rowIndex", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetSort sets the sort property value. The worksheet containing the current range. Read-only.
|
|
func (m *WorkbookRange) SetSort(value WorkbookRangeSortable)() {
|
|
err := m.GetBackingStore().Set("sort", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetText sets the text property value. Text values of the specified range. The Text value will not depend on the cell width. The # sign substitution that happens in Excel UI will not affect the text value returned by the API. Read-only.
|
|
func (m *WorkbookRange) SetText(value Jsonable)() {
|
|
err := m.GetBackingStore().Set("text", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetValues sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string.
|
|
func (m *WorkbookRange) SetValues(value Jsonable)() {
|
|
err := m.GetBackingStore().Set("values", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetValueTypes sets the valueTypes property value. Represents the type of data of each cell. The possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. Read-only.
|
|
func (m *WorkbookRange) SetValueTypes(value Jsonable)() {
|
|
err := m.GetBackingStore().Set("valueTypes", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// SetWorksheet sets the worksheet property value. The worksheet containing the current range. Read-only.
|
|
func (m *WorkbookRange) SetWorksheet(value WorkbookWorksheetable)() {
|
|
err := m.GetBackingStore().Set("worksheet", value)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
// WorkbookRangeable
|
|
type WorkbookRangeable interface {
|
|
Entityable
|
|
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
|
|
GetAddress()(*string)
|
|
GetAddressLocal()(*string)
|
|
GetCellCount()(*int32)
|
|
GetColumnCount()(*int32)
|
|
GetColumnHidden()(*bool)
|
|
GetColumnIndex()(*int32)
|
|
GetFormat()(WorkbookRangeFormatable)
|
|
GetFormulas()(Jsonable)
|
|
GetFormulasLocal()(Jsonable)
|
|
GetFormulasR1C1()(Jsonable)
|
|
GetHidden()(*bool)
|
|
GetNumberFormat()(Jsonable)
|
|
GetRowCount()(*int32)
|
|
GetRowHidden()(*bool)
|
|
GetRowIndex()(*int32)
|
|
GetSort()(WorkbookRangeSortable)
|
|
GetText()(Jsonable)
|
|
GetValues()(Jsonable)
|
|
GetValueTypes()(Jsonable)
|
|
GetWorksheet()(WorkbookWorksheetable)
|
|
SetAddress(value *string)()
|
|
SetAddressLocal(value *string)()
|
|
SetCellCount(value *int32)()
|
|
SetColumnCount(value *int32)()
|
|
SetColumnHidden(value *bool)()
|
|
SetColumnIndex(value *int32)()
|
|
SetFormat(value WorkbookRangeFormatable)()
|
|
SetFormulas(value Jsonable)()
|
|
SetFormulasLocal(value Jsonable)()
|
|
SetFormulasR1C1(value Jsonable)()
|
|
SetHidden(value *bool)()
|
|
SetNumberFormat(value Jsonable)()
|
|
SetRowCount(value *int32)()
|
|
SetRowHidden(value *bool)()
|
|
SetRowIndex(value *int32)()
|
|
SetSort(value WorkbookRangeSortable)()
|
|
SetText(value Jsonable)()
|
|
SetValues(value Jsonable)()
|
|
SetValueTypes(value Jsonable)()
|
|
SetWorksheet(value WorkbookWorksheetable)()
|
|
}
|