Class WorkbookRangeFormat

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.WorkbookRangeFormat
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class WorkbookRangeFormat extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • WorkbookRangeFormat

      public WorkbookRangeFormat()
      Instantiates a new WorkbookRangeFormat and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static WorkbookRangeFormat createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a WorkbookRangeFormat
    • getBorders

      @Nullable public List<WorkbookRangeBorder> getBorders()
      Gets the borders property value. Collection of border objects that apply to the overall range selected Read-only.
      Returns:
      a List<WorkbookRangeBorder>
    • getColumnWidth

      @Nullable public Double getColumnWidth()
      Gets the columnWidth property value. The width of all columns within the range. If the column widths aren't uniform, null will be returned.
      Returns:
      a Double
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFill

      @Nullable public WorkbookRangeFill getFill()
      Gets the fill property value. Returns the fill object defined on the overall range. Read-only.
      Returns:
      a WorkbookRangeFill
    • getFont

      @Nullable public WorkbookRangeFont getFont()
      Gets the font property value. Returns the font object defined on the overall range selected Read-only.
      Returns:
      a WorkbookRangeFont
    • getHorizontalAlignment

      @Nullable public String getHorizontalAlignment()
      Gets the horizontalAlignment property value. The horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed.
      Returns:
      a String
    • getProtection

      @Nullable public WorkbookFormatProtection getProtection()
      Gets the protection property value. Returns the format protection object for a range. Read-only.
      Returns:
      a WorkbookFormatProtection
    • getRowHeight

      @Nullable public Double getRowHeight()
      Gets the rowHeight property value. The height of all rows in the range. If the row heights aren't uniform null will be returned.
      Returns:
      a Double
    • getVerticalAlignment

      @Nullable public String getVerticalAlignment()
      Gets the verticalAlignment property value. The vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed.
      Returns:
      a String
    • getWrapText

      @Nullable public Boolean getWrapText()
      Gets the wrapText property value. Indicates whether Excel wraps the text in the object. A null value indicates that the entire range doesn't have a uniform wrap setting.
      Returns:
      a Boolean
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setBorders

      public void setBorders(@Nullable List<WorkbookRangeBorder> value)
      Sets the borders property value. Collection of border objects that apply to the overall range selected Read-only.
      Parameters:
      value - Value to set for the borders property.
    • setColumnWidth

      public void setColumnWidth(@Nullable Double value)
      Sets the columnWidth property value. The width of all columns within the range. If the column widths aren't uniform, null will be returned.
      Parameters:
      value - Value to set for the columnWidth property.
    • setFill

      public void setFill(@Nullable WorkbookRangeFill value)
      Sets the fill property value. Returns the fill object defined on the overall range. Read-only.
      Parameters:
      value - Value to set for the fill property.
    • setFont

      public void setFont(@Nullable WorkbookRangeFont value)
      Sets the font property value. Returns the font object defined on the overall range selected Read-only.
      Parameters:
      value - Value to set for the font property.
    • setHorizontalAlignment

      public void setHorizontalAlignment(@Nullable String value)
      Sets the horizontalAlignment property value. The horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed.
      Parameters:
      value - Value to set for the horizontalAlignment property.
    • setProtection

      public void setProtection(@Nullable WorkbookFormatProtection value)
      Sets the protection property value. Returns the format protection object for a range. Read-only.
      Parameters:
      value - Value to set for the protection property.
    • setRowHeight

      public void setRowHeight(@Nullable Double value)
      Sets the rowHeight property value. The height of all rows in the range. If the row heights aren't uniform null will be returned.
      Parameters:
      value - Value to set for the rowHeight property.
    • setVerticalAlignment

      public void setVerticalAlignment(@Nullable String value)
      Sets the verticalAlignment property value. The vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed.
      Parameters:
      value - Value to set for the verticalAlignment property.
    • setWrapText

      public void setWrapText(@Nullable Boolean value)
      Sets the wrapText property value. Indicates whether Excel wraps the text in the object. A null value indicates that the entire range doesn't have a uniform wrap setting.
      Parameters:
      value - Value to set for the wrapText property.