rubyXL 3.3.21 → 3.3.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +7 -0
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods.rb +63 -0
- data/lib/rubyXL/objects/border.rb +29 -1
- data/lib/rubyXL/objects/comments.rb +2 -2
- data/lib/rubyXL/objects/font.rb +4 -4
- data/rdoc/README_rdoc.html +8 -1
- data/rdoc/RubyXL.html +1 -1
- data/rdoc/RubyXL/AExtension.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/AdjustHandleList.html +1 -1
- data/rdoc/RubyXL/Alignment.html +1 -1
- data/rdoc/RubyXL/AlternateContent.html +1 -1
- data/rdoc/RubyXL/Authors.html +1 -1
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/BinaryImageFile.html +1 -1
- data/rdoc/RubyXL/BodyProperties.html +1 -1
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +86 -4
- data/rdoc/RubyXL/BorderEdge.html +87 -1
- data/rdoc/RubyXL/Borders.html +2 -2
- data/rdoc/RubyXL/Break.html +1 -1
- data/rdoc/RubyXL/BreakList.html +1 -1
- data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
- data/rdoc/RubyXL/CT_Backdrop.html +1 -1
- data/rdoc/RubyXL/CT_Bevel.html +1 -1
- data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
- data/rdoc/RubyXL/CT_Blip.html +1 -1
- data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
- data/rdoc/RubyXL/CT_Camera.html +1 -1
- data/rdoc/RubyXL/CT_Color.html +1 -1
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
- data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
- data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
- data/rdoc/RubyXL/CT_DashStop.html +1 -1
- data/rdoc/RubyXL/CT_DashStopList.html +1 -1
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
- data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
- data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
- data/rdoc/RubyXL/CT_EffectList.html +1 -1
- data/rdoc/RubyXL/CT_EffectReference.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
- data/rdoc/RubyXL/CT_FillEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
- data/rdoc/RubyXL/CT_FlatText.html +1 -1
- data/rdoc/RubyXL/CT_FontCollection.html +1 -1
- data/rdoc/RubyXL/CT_FontReference.html +1 -1
- data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
- data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
- data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_GradientStop.html +1 -1
- data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
- data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
- data/rdoc/RubyXL/CT_HslColor.html +1 -1
- data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_LightRig.html +1 -1
- data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_Path2D.html +1 -1
- data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DList.html +1 -1
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
- data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_Point3D.html +1 -1
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CT_PresetColor.html +1 -1
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
- data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
- data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_Scene3D.html +1 -1
- data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
- data/rdoc/RubyXL/CT_Shape3D.html +1 -1
- data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
- data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
- data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
- data/rdoc/RubyXL/CT_SystemColor.html +1 -1
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextFont.html +1 -1
- data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
- data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_TintEffect.html +1 -1
- data/rdoc/RubyXL/CT_Transform2D.html +1 -1
- data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
- data/rdoc/RubyXL/CT_Vector3D.html +1 -1
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CalculationChain.html +1 -1
- data/rdoc/RubyXL/CalculationChainCell.html +1 -1
- data/rdoc/RubyXL/CalculationProperties.html +1 -1
- data/rdoc/RubyXL/Cell.html +1 -1
- data/rdoc/RubyXL/CellConvenienceMethods.html +101 -28
- data/rdoc/RubyXL/CellExt.html +1 -1
- data/rdoc/RubyXL/CellSmartTag.html +1 -1
- data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
- data/rdoc/RubyXL/CellSmartTags.html +1 -1
- data/rdoc/RubyXL/CellStyle.html +1 -1
- data/rdoc/RubyXL/CellStyleXFs.html +1 -1
- data/rdoc/RubyXL/CellStyles.html +1 -1
- data/rdoc/RubyXL/CellValue.html +1 -1
- data/rdoc/RubyXL/CellWatch.html +1 -1
- data/rdoc/RubyXL/CellWatches.html +1 -1
- data/rdoc/RubyXL/CellXFs.html +1 -1
- data/rdoc/RubyXL/ChartColorsFile.html +1 -1
- data/rdoc/RubyXL/ChartFile.html +1 -1
- data/rdoc/RubyXL/ChartStyleFile.html +1 -1
- data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
- data/rdoc/RubyXL/Chartsheet.html +1 -1
- data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
- data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
- data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
- data/rdoc/RubyXL/ChartsheetView.html +1 -1
- data/rdoc/RubyXL/ChartsheetViews.html +1 -1
- data/rdoc/RubyXL/Color.html +1 -1
- data/rdoc/RubyXL/ColorFilter.html +1 -1
- data/rdoc/RubyXL/ColorScale.html +1 -1
- data/rdoc/RubyXL/ColorSet.html +1 -1
- data/rdoc/RubyXL/Colors.html +1 -1
- data/rdoc/RubyXL/ColumnRange.html +1 -1
- data/rdoc/RubyXL/ColumnRanges.html +1 -1
- data/rdoc/RubyXL/Comment.html +1 -1
- data/rdoc/RubyXL/CommentList.html +1 -1
- data/rdoc/RubyXL/CommentsFile.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
- data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
- data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
- data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
- data/rdoc/RubyXL/ContentTypes.html +1 -1
- data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomColor.html +1 -1
- data/rdoc/RubyXL/CustomColorList.html +1 -1
- data/rdoc/RubyXL/CustomFilter.html +1 -1
- data/rdoc/RubyXL/CustomFilters.html +1 -1
- data/rdoc/RubyXL/CustomGeometry.html +1 -1
- data/rdoc/RubyXL/CustomProperties.html +1 -1
- data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomProperty.html +1 -1
- data/rdoc/RubyXL/CustomSheetView.html +1 -1
- data/rdoc/RubyXL/CustomSheetViews.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
- data/rdoc/RubyXL/CustomXMLFile.html +1 -1
- data/rdoc/RubyXL/DXF.html +1 -1
- data/rdoc/RubyXL/DXFs.html +1 -1
- data/rdoc/RubyXL/DataBar.html +1 -1
- data/rdoc/RubyXL/DataConsolidate.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
- data/rdoc/RubyXL/DataType.html +1 -1
- data/rdoc/RubyXL/DataValidation.html +1 -1
- data/rdoc/RubyXL/DataValidations.html +1 -1
- data/rdoc/RubyXL/DateGroupItem.html +1 -1
- data/rdoc/RubyXL/DefinedName.html +1 -1
- data/rdoc/RubyXL/DefinedNameExt.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DefinedNamesExt.html +1 -1
- data/rdoc/RubyXL/DocumentPropertiesFile.html +1 -1
- data/rdoc/RubyXL/DrawingFile.html +1 -1
- data/rdoc/RubyXL/DynamicFilter.html +1 -1
- data/rdoc/RubyXL/EmbeddedControl.html +1 -1
- data/rdoc/RubyXL/EmbeddedControls.html +1 -1
- data/rdoc/RubyXL/Extension.html +1 -1
- data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Extents.html +1 -1
- data/rdoc/RubyXL/ExternalBook.html +1 -1
- data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
- data/rdoc/RubyXL/ExternalReference.html +1 -1
- data/rdoc/RubyXL/ExternalReferences.html +1 -1
- data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
- data/rdoc/RubyXL/FieldItem.html +1 -1
- data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
- data/rdoc/RubyXL/FileSharing.html +1 -1
- data/rdoc/RubyXL/FileVersion.html +1 -1
- data/rdoc/RubyXL/Fill.html +1 -1
- data/rdoc/RubyXL/Fills.html +1 -1
- data/rdoc/RubyXL/FilterContainer.html +1 -1
- data/rdoc/RubyXL/FloatNode.html +1 -1
- data/rdoc/RubyXL/FloatValue.html +1 -1
- data/rdoc/RubyXL/Font.html +5 -5
- data/rdoc/RubyXL/FontScheme.html +1 -1
- data/rdoc/RubyXL/Fonts.html +1 -1
- data/rdoc/RubyXL/Formula.html +1 -1
- data/rdoc/RubyXL/FunctionGroup.html +1 -1
- data/rdoc/RubyXL/FunctionGroups.html +1 -1
- data/rdoc/RubyXL/GenericStorageObject.html +1 -1
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +1 -1
- data/rdoc/RubyXL/IconFilter.html +1 -1
- data/rdoc/RubyXL/IconSet.html +1 -1
- data/rdoc/RubyXL/IgnoredError.html +1 -1
- data/rdoc/RubyXL/IgnoredErrors.html +1 -1
- data/rdoc/RubyXL/IndexedColors.html +1 -1
- data/rdoc/RubyXL/InputCells.html +1 -1
- data/rdoc/RubyXL/IntegerNode.html +1 -1
- data/rdoc/RubyXL/IntegerValue.html +1 -1
- data/rdoc/RubyXL/LegacyCell.html +1 -1
- data/rdoc/RubyXL/LegacyWorksheet.html +1 -1
- data/rdoc/RubyXL/MRUColors.html +1 -1
- data/rdoc/RubyXL/MacrosFile.html +1 -1
- data/rdoc/RubyXL/MergedCell.html +1 -1
- data/rdoc/RubyXL/MergedCells.html +1 -1
- data/rdoc/RubyXL/NumFmt.html +1 -1
- data/rdoc/RubyXL/NumberFormat.html +1 -1
- data/rdoc/RubyXL/NumberFormats.html +1 -1
- data/rdoc/RubyXL/OLEObject.html +1 -1
- data/rdoc/RubyXL/OLEObjectFile.html +1 -1
- data/rdoc/RubyXL/OLEObjects.html +1 -1
- data/rdoc/RubyXL/OLESize.html +1 -1
- data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/Offset.html +1 -1
- data/rdoc/RubyXL/OutlineProperties.html +1 -1
- data/rdoc/RubyXL/PageMargins.html +1 -1
- data/rdoc/RubyXL/PageSetup.html +1 -1
- data/rdoc/RubyXL/PageSetupProperties.html +1 -1
- data/rdoc/RubyXL/Pane.html +1 -1
- data/rdoc/RubyXL/Parser.html +1 -1
- data/rdoc/RubyXL/PatternFill.html +1 -1
- data/rdoc/RubyXL/PhoneticProperties.html +1 -1
- data/rdoc/RubyXL/PhoneticRun.html +1 -1
- data/rdoc/RubyXL/PivotArea.html +1 -1
- data/rdoc/RubyXL/PivotCache.html +1 -1
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +1 -1
- data/rdoc/RubyXL/PivotTableFile.html +1 -1
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +1 -1
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +1 -1
- data/rdoc/RubyXL/ProtectedRanges.html +1 -1
- data/rdoc/RubyXL/Protection.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +1 -1
- data/rdoc/RubyXL/Reference.html +1 -1
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +1 -1
- data/rdoc/RubyXL/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/Row.html +1 -1
- data/rdoc/RubyXL/RowExt.html +1 -1
- data/rdoc/RubyXL/RunProperties.html +1 -1
- data/rdoc/RubyXL/Scenario.html +1 -1
- data/rdoc/RubyXL/Scenarios.html +1 -1
- data/rdoc/RubyXL/Selection.html +1 -1
- data/rdoc/RubyXL/ShapeGuide.html +1 -1
- data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
- data/rdoc/RubyXL/SharedStringsTable.html +1 -1
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +1 -1
- data/rdoc/RubyXL/SheetDataExt.html +1 -1
- data/rdoc/RubyXL/SheetDataSet.html +1 -1
- data/rdoc/RubyXL/SheetName.html +1 -1
- data/rdoc/RubyXL/SheetNames.html +1 -1
- data/rdoc/RubyXL/Sheets.html +1 -1
- data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
- data/rdoc/RubyXL/SlicerFile.html +1 -1
- data/rdoc/RubyXL/SmartTagProperties.html +1 -1
- data/rdoc/RubyXL/SmartTagType.html +1 -1
- data/rdoc/RubyXL/SmartTagTypes.html +1 -1
- data/rdoc/RubyXL/SmartTags.html +1 -1
- data/rdoc/RubyXL/SortCondition.html +1 -1
- data/rdoc/RubyXL/SortState.html +1 -1
- data/rdoc/RubyXL/Sqref.html +1 -1
- data/rdoc/RubyXL/Stop.html +1 -1
- data/rdoc/RubyXL/StringNode.html +1 -1
- data/rdoc/RubyXL/StringNodeW3C.html +1 -1
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +1 -1
- data/rdoc/RubyXL/TableFile.html +1 -1
- data/rdoc/RubyXL/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +1 -1
- data/rdoc/RubyXL/Text.html +1 -1
- data/rdoc/RubyXL/Theme.html +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/ThumbnailFile.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
- data/rdoc/RubyXL/Variant.html +1 -1
- data/rdoc/RubyXL/Vector.html +1 -1
- data/rdoc/RubyXL/VectorValue.html +1 -1
- data/rdoc/RubyXL/VisualProperties.html +1 -1
- data/rdoc/RubyXL/WebPublishObject.html +1 -1
- data/rdoc/RubyXL/WebPublishObjects.html +1 -1
- data/rdoc/RubyXL/WebPublishingItem.html +1 -1
- data/rdoc/RubyXL/WebPublishingItems.html +1 -1
- data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
- data/rdoc/RubyXL/Workbook.html +1 -1
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +45 -1
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRoot.html +1 -1
- data/rdoc/RubyXL/WorkbookView.html +1 -1
- data/rdoc/RubyXL/WorkbookViews.html +1 -1
- data/rdoc/RubyXL/Worksheet.html +1 -1
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +229 -65
- data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
- data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProtection.html +1 -1
- data/rdoc/RubyXL/WorksheetView.html +1 -1
- data/rdoc/RubyXL/WorksheetViews.html +1 -1
- data/rdoc/RubyXL/XF.html +1 -1
- data/rdoc/created.rid +27 -27
- data/rdoc/index.html +2 -2
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +57 -2
- data/rubyXL.gemspec +37 -37
- data/spec/lib/cell_spec.rb +41 -0
- metadata +3 -3
data/rdoc/RubyXL/SmartTags.html
CHANGED
data/rdoc/RubyXL/SortState.html
CHANGED
data/rdoc/RubyXL/Sqref.html
CHANGED
data/rdoc/RubyXL/Stop.html
CHANGED
data/rdoc/RubyXL/StringNode.html
CHANGED
data/rdoc/RubyXL/Stylesheet.html
CHANGED
data/rdoc/RubyXL/TableFile.html
CHANGED
data/rdoc/RubyXL/TableParts.html
CHANGED
data/rdoc/RubyXL/TableStyle.html
CHANGED
data/rdoc/RubyXL/Text.html
CHANGED
data/rdoc/RubyXL/Theme.html
CHANGED
data/rdoc/RubyXL/Top10.html
CHANGED
data/rdoc/RubyXL/Variant.html
CHANGED
data/rdoc/RubyXL/Vector.html
CHANGED
data/rdoc/RubyXL/Workbook.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.3.
|
7
|
+
<title>module RubyXL::WorkbookConvenienceMethods - rubyXL 3.3.22</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
@@ -115,6 +115,8 @@
|
|
115
115
|
|
116
116
|
<li ><a href="#method-i-modify_border">#modify_border</a>
|
117
117
|
|
118
|
+
<li ><a href="#method-i-modify_border_color">#modify_border_color</a>
|
119
|
+
|
118
120
|
<li ><a href="#method-i-modify_fill">#modify_fill</a>
|
119
121
|
|
120
122
|
<li ><a href="#method-i-register_new_fill">#register_new_fill</a>
|
@@ -1062,6 +1064,48 @@
|
|
1062
1064
|
|
1063
1065
|
|
1064
1066
|
|
1067
|
+
</div>
|
1068
|
+
|
1069
|
+
|
1070
|
+
<div id="method-i-modify_border_color" class="method-detail ">
|
1071
|
+
|
1072
|
+
<div class="method-heading">
|
1073
|
+
<span class="method-name">modify_border_color</span><span
|
1074
|
+
class="method-args">(style_index, direction, color)</span>
|
1075
|
+
|
1076
|
+
<span class="method-click-advice">click to toggle source</span>
|
1077
|
+
|
1078
|
+
</div>
|
1079
|
+
|
1080
|
+
|
1081
|
+
<div class="method-description">
|
1082
|
+
|
1083
|
+
|
1084
|
+
|
1085
|
+
|
1086
|
+
|
1087
|
+
|
1088
|
+
<div class="method-source-code" id="modify_border_color-source">
|
1089
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 181</span>
|
1090
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_border_color</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
1091
|
+
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>].<span class="ruby-identifier">dup</span>
|
1092
|
+
<span class="ruby-identifier">new_border</span> = <span class="ruby-identifier">borders</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>].<span class="ruby-identifier">dup</span>
|
1093
|
+
<span class="ruby-identifier">new_border</span>.<span class="ruby-identifier">set_edge_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
1094
|
+
|
1095
|
+
<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span> = <span class="ruby-identifier">borders</span>.<span class="ruby-identifier">find_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">x</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">new_border</span> } <span class="ruby-comment"># Reuse existing border, if it exists</span>
|
1096
|
+
<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">borders</span>.<span class="ruby-identifier">size</span> <span class="ruby-comment"># If this border has never existed before, add it to collection.</span>
|
1097
|
+
<span class="ruby-identifier">borders</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span>] = <span class="ruby-identifier">new_border</span>
|
1098
|
+
<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">apply_border</span> = <span class="ruby-keyword">true</span>
|
1099
|
+
|
1100
|
+
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">xf</span>)
|
1101
|
+
<span class="ruby-keyword">end</span></pre>
|
1102
|
+
</div>
|
1103
|
+
|
1104
|
+
</div>
|
1105
|
+
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1065
1109
|
</div>
|
1066
1110
|
|
1067
1111
|
|
data/rdoc/RubyXL/Worksheet.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.3.
|
7
|
+
<title>module RubyXL::WorksheetConvenienceMethods - rubyXL 3.3.22</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
@@ -69,6 +69,8 @@
|
|
69
69
|
|
70
70
|
<li ><a href="#method-i-change_column_border">#change_column_border</a>
|
71
71
|
|
72
|
+
<li ><a href="#method-i-change_column_border_color">#change_column_border_color</a>
|
73
|
+
|
72
74
|
<li ><a href="#method-i-change_column_fill">#change_column_fill</a>
|
73
75
|
|
74
76
|
<li ><a href="#method-i-change_column_font">#change_column_font</a>
|
@@ -99,6 +101,8 @@
|
|
99
101
|
|
100
102
|
<li ><a href="#method-i-change_row_border">#change_row_border</a>
|
101
103
|
|
104
|
+
<li ><a href="#method-i-change_row_border_color">#change_row_border_color</a>
|
105
|
+
|
102
106
|
<li ><a href="#method-i-change_row_fill">#change_row_fill</a>
|
103
107
|
|
104
108
|
<li ><a href="#method-i-change_row_font">#change_row_font</a>
|
@@ -137,6 +141,8 @@
|
|
137
141
|
|
138
142
|
<li ><a href="#method-i-get_column_border">#get_column_border</a>
|
139
143
|
|
144
|
+
<li ><a href="#method-i-get_column_border_color">#get_column_border_color</a>
|
145
|
+
|
140
146
|
<li ><a href="#method-i-get_column_fill">#get_column_fill</a>
|
141
147
|
|
142
148
|
<li ><a href="#method-i-get_column_font_color">#get_column_font_color</a>
|
@@ -153,6 +159,8 @@
|
|
153
159
|
|
154
160
|
<li ><a href="#method-i-get_row_border">#get_row_border</a>
|
155
161
|
|
162
|
+
<li ><a href="#method-i-get_row_border_color">#get_row_border_color</a>
|
163
|
+
|
156
164
|
<li ><a href="#method-i-get_row_fill">#get_row_fill</a>
|
157
165
|
|
158
166
|
<li ><a href="#method-i-get_row_font_color">#get_row_font_color</a>
|
@@ -288,7 +296,7 @@
|
|
288
296
|
|
289
297
|
|
290
298
|
<div class="method-source-code" id="change_column_alignment-source">
|
291
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
299
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 785</span>
|
292
300
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
293
301
|
<span class="ruby-identifier">validate_workbook</span>
|
294
302
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -332,7 +340,7 @@
|
|
332
340
|
|
333
341
|
|
334
342
|
<div class="method-source-code" id="change_column_bold-source">
|
335
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
343
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 718</span>
|
336
344
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_bold</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">bolded</span> = <span class="ruby-keyword">false</span>)
|
337
345
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
338
346
|
<span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
|
@@ -368,7 +376,7 @@
|
|
368
376
|
|
369
377
|
|
370
378
|
<div class="method-source-code" id="change_column_border-source">
|
371
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
379
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 747</span>
|
372
380
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_border</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
373
381
|
<span class="ruby-identifier">validate_workbook</span>
|
374
382
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -387,6 +395,48 @@
|
|
387
395
|
|
388
396
|
|
389
397
|
|
398
|
+
</div>
|
399
|
+
|
400
|
+
|
401
|
+
<div id="method-i-change_column_border_color" class="method-detail ">
|
402
|
+
|
403
|
+
<div class="method-heading">
|
404
|
+
<span class="method-name">change_column_border_color</span><span
|
405
|
+
class="method-args">(column_index, direction, color)</span>
|
406
|
+
|
407
|
+
<span class="method-click-advice">click to toggle source</span>
|
408
|
+
|
409
|
+
</div>
|
410
|
+
|
411
|
+
|
412
|
+
<div class="method-description">
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
<div class="method-source-code" id="change_column_border_color-source">
|
420
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 759</span>
|
421
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_border_color</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
422
|
+
<span class="ruby-identifier">validate_workbook</span>
|
423
|
+
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
424
|
+
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color</span>)
|
425
|
+
|
426
|
+
<span class="ruby-identifier">cols</span>.<span class="ruby-identifier">get_range</span>(<span class="ruby-identifier">column_index</span>).<span class="ruby-identifier">style_index</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">modify_border_color</span>(<span class="ruby-identifier">get_col_style</span>(<span class="ruby-identifier">column_index</span>), <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
427
|
+
|
428
|
+
<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span>
|
429
|
+
<span class="ruby-identifier">c</span> = <span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>[<span class="ruby-identifier">column_index</span>]
|
430
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">change_border_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span>
|
431
|
+
}
|
432
|
+
<span class="ruby-keyword">end</span></pre>
|
433
|
+
</div>
|
434
|
+
|
435
|
+
</div>
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
390
440
|
</div>
|
391
441
|
|
392
442
|
|
@@ -409,7 +459,7 @@
|
|
409
459
|
|
410
460
|
|
411
461
|
<div class="method-source-code" id="change_column_fill-source">
|
412
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
462
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 515</span>
|
413
463
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_fill</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">color_code</span> = <span class="ruby-string">'ffffff'</span>)
|
414
464
|
<span class="ruby-identifier">validate_workbook</span>
|
415
465
|
<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color_code</span>)
|
@@ -452,7 +502,7 @@ change font, called from each separate font mutator method</p>
|
|
452
502
|
|
453
503
|
|
454
504
|
<div class="method-source-code" id="change_column_font-source">
|
455
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
505
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 675</span>
|
456
506
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_font</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">change_type</span>, <span class="ruby-identifier">arg</span>, <span class="ruby-identifier">font</span>, <span class="ruby-identifier">xf</span>)
|
457
507
|
<span class="ruby-identifier">validate_workbook</span>
|
458
508
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -494,7 +544,7 @@ change font, called from each separate font mutator method</p>
|
|
494
544
|
|
495
545
|
|
496
546
|
<div class="method-source-code" id="change_column_font_color-source">
|
497
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
547
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 702</span>
|
498
548
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_font_color</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">font_color</span>=<span class="ruby-string">'000000'</span>)
|
499
549
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
|
500
550
|
|
@@ -532,7 +582,7 @@ change font, called from each separate font mutator method</p>
|
|
532
582
|
|
533
583
|
|
534
584
|
<div class="method-source-code" id="change_column_font_name-source">
|
535
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
585
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 688</span>
|
536
586
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_font_name</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">font_name</span> = <span class="ruby-string">'Verdana'</span>)
|
537
587
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
538
588
|
<span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
|
@@ -568,7 +618,7 @@ change font, called from each separate font mutator method</p>
|
|
568
618
|
|
569
619
|
|
570
620
|
<div class="method-source-code" id="change_column_font_size-source">
|
571
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
621
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 695</span>
|
572
622
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_font_size</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">font_size</span>=<span class="ruby-value">10</span>)
|
573
623
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
574
624
|
<span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
|
@@ -604,7 +654,7 @@ change font, called from each separate font mutator method</p>
|
|
604
654
|
|
605
655
|
|
606
656
|
<div class="method-source-code" id="change_column_horizontal_alignment-source">
|
607
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
657
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 739</span>
|
608
658
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_horizontal_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
609
659
|
<span class="ruby-identifier">change_column_alignment</span>(<span class="ruby-identifier">column_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">horizontal</span> = <span class="ruby-identifier">alignment</span> }
|
610
660
|
<span class="ruby-keyword">end</span></pre>
|
@@ -637,7 +687,7 @@ change font, called from each separate font mutator method</p>
|
|
637
687
|
|
638
688
|
|
639
689
|
<div class="method-source-code" id="change_column_italics-source">
|
640
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
690
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 711</span>
|
641
691
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_italics</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">italicized</span> = <span class="ruby-keyword">false</span>)
|
642
692
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
643
693
|
<span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
|
@@ -673,7 +723,7 @@ change font, called from each separate font mutator method</p>
|
|
673
723
|
|
674
724
|
|
675
725
|
<div class="method-source-code" id="change_column_strikethrough-source">
|
676
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
726
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 732</span>
|
677
727
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_strikethrough</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">struckthrough</span>=<span class="ruby-keyword">false</span>)
|
678
728
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
679
729
|
<span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
|
@@ -709,7 +759,7 @@ change font, called from each separate font mutator method</p>
|
|
709
759
|
|
710
760
|
|
711
761
|
<div class="method-source-code" id="change_column_underline-source">
|
712
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
762
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 725</span>
|
713
763
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_underline</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">underlined</span> = <span class="ruby-keyword">false</span>)
|
714
764
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
715
765
|
<span class="ruby-identifier">font</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">font_id</span>].<span class="ruby-identifier">dup</span>
|
@@ -745,7 +795,7 @@ change font, called from each separate font mutator method</p>
|
|
745
795
|
|
746
796
|
|
747
797
|
<div class="method-source-code" id="change_column_vertical_alignment-source">
|
748
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
798
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 743</span>
|
749
799
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_vertical_alignment</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
750
800
|
<span class="ruby-identifier">change_column_alignment</span>(<span class="ruby-identifier">column_index</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">vertical</span> = <span class="ruby-identifier">alignment</span> }
|
751
801
|
<span class="ruby-keyword">end</span></pre>
|
@@ -779,7 +829,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
779
829
|
|
780
830
|
|
781
831
|
<div class="method-source-code" id="change_column_width-source">
|
782
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
832
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 498</span>
|
783
833
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_width</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">width_in_chars</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">ColumnRange</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_WIDTH</span>)
|
784
834
|
<span class="ruby-identifier">change_column_width_raw</span>(<span class="ruby-identifier">column_index</span>, ((<span class="ruby-identifier">width_in_chars</span> <span class="ruby-operator">+</span> (<span class="ruby-value">5.0</span> <span class="ruby-operator">/</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Font</span><span class="ruby-operator">::</span><span class="ruby-constant">MAX_DIGIT_WIDTH</span>)) <span class="ruby-operator">*</span> <span class="ruby-value">256</span>).<span class="ruby-identifier">to_i</span> <span class="ruby-operator">/</span> <span class="ruby-value">256.0</span>)
|
785
835
|
<span class="ruby-keyword">end</span></pre>
|
@@ -812,7 +862,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
812
862
|
|
813
863
|
|
814
864
|
<div class="method-source-code" id="change_column_width_raw-source">
|
815
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
865
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 488</span>
|
816
866
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_column_width_raw</span>(<span class="ruby-identifier">column_index</span>, <span class="ruby-identifier">width</span>)
|
817
867
|
<span class="ruby-identifier">validate_workbook</span>
|
818
868
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -849,7 +899,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
849
899
|
|
850
900
|
|
851
901
|
<div class="method-source-code" id="change_row_alignment-source">
|
852
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
902
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 772</span>
|
853
903
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
854
904
|
<span class="ruby-identifier">validate_workbook</span>
|
855
905
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
@@ -891,7 +941,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
891
941
|
|
892
942
|
|
893
943
|
<div class="method-source-code" id="change_row_bold-source">
|
894
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
944
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 643</span>
|
895
945
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_bold</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">bolded</span> = <span class="ruby-keyword">false</span>)
|
896
946
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
897
947
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
|
@@ -927,7 +977,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
927
977
|
|
928
978
|
|
929
979
|
<div class="method-source-code" id="change_row_border-source">
|
930
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
980
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 569</span>
|
931
981
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
932
982
|
<span class="ruby-identifier">validate_workbook</span>
|
933
983
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
@@ -945,6 +995,47 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
945
995
|
|
946
996
|
|
947
997
|
|
998
|
+
</div>
|
999
|
+
|
1000
|
+
|
1001
|
+
<div id="method-i-change_row_border_color" class="method-detail ">
|
1002
|
+
|
1003
|
+
<div class="method-heading">
|
1004
|
+
<span class="method-name">change_row_border_color</span><span
|
1005
|
+
class="method-args">(row, direction, color = '000000')</span>
|
1006
|
+
|
1007
|
+
<span class="method-click-advice">click to toggle source</span>
|
1008
|
+
|
1009
|
+
</div>
|
1010
|
+
|
1011
|
+
|
1012
|
+
<div class="method-description">
|
1013
|
+
|
1014
|
+
|
1015
|
+
|
1016
|
+
|
1017
|
+
|
1018
|
+
|
1019
|
+
<div class="method-source-code" id="change_row_border_color-source">
|
1020
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 580</span>
|
1021
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_border_color</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span> = <span class="ruby-string">'000000'</span>)
|
1022
|
+
<span class="ruby-identifier">validate_workbook</span>
|
1023
|
+
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1024
|
+
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color</span>)
|
1025
|
+
|
1026
|
+
<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>].<span class="ruby-identifier">style_index</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">modify_border_color</span>(<span class="ruby-identifier">get_row_style</span>(<span class="ruby-identifier">row</span>), <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
1027
|
+
|
1028
|
+
<span class="ruby-identifier">sheet_data</span>[<span class="ruby-identifier">row</span>].<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
1029
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">change_border_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">nil?</span>
|
1030
|
+
}
|
1031
|
+
<span class="ruby-keyword">end</span></pre>
|
1032
|
+
</div>
|
1033
|
+
|
1034
|
+
</div>
|
1035
|
+
|
1036
|
+
|
1037
|
+
|
1038
|
+
|
948
1039
|
</div>
|
949
1040
|
|
950
1041
|
|
@@ -967,7 +1058,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
967
1058
|
|
968
1059
|
|
969
1060
|
<div class="method-source-code" id="change_row_fill-source">
|
970
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1061
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 592</span>
|
971
1062
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_fill</span>(<span class="ruby-identifier">row_index</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">rgb</span> = <span class="ruby-string">'ffffff'</span>)
|
972
1063
|
<span class="ruby-identifier">validate_workbook</span>
|
973
1064
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -1009,7 +1100,7 @@ change font, called from each separate font mutator method</p>
|
|
1009
1100
|
|
1010
1101
|
|
1011
1102
|
<div class="method-source-code" id="change_row_font-source">
|
1012
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1103
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 604</span>
|
1013
1104
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_font</span>(<span class="ruby-identifier">row_index</span>, <span class="ruby-identifier">change_type</span>, <span class="ruby-identifier">arg</span>, <span class="ruby-identifier">font</span>)
|
1014
1105
|
<span class="ruby-identifier">validate_workbook</span>
|
1015
1106
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -1048,7 +1139,7 @@ change font, called from each separate font mutator method</p>
|
|
1048
1139
|
|
1049
1140
|
|
1050
1141
|
<div class="method-source-code" id="change_row_font_color-source">
|
1051
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1142
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 628</span>
|
1052
1143
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_font_color</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">font_color</span> = <span class="ruby-string">'000000'</span>)
|
1053
1144
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1054
1145
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
|
@@ -1085,7 +1176,7 @@ change font, called from each separate font mutator method</p>
|
|
1085
1176
|
|
1086
1177
|
|
1087
1178
|
<div class="method-source-code" id="change_row_font_name-source">
|
1088
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1179
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 614</span>
|
1089
1180
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_font_name</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">font_name</span> = <span class="ruby-string">'Verdana'</span>)
|
1090
1181
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1091
1182
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
|
@@ -1121,7 +1212,7 @@ change font, called from each separate font mutator method</p>
|
|
1121
1212
|
|
1122
1213
|
|
1123
1214
|
<div class="method-source-code" id="change_row_font_size-source">
|
1124
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1215
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 621</span>
|
1125
1216
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_font_size</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">font_size</span>=<span class="ruby-value">10</span>)
|
1126
1217
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1127
1218
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
|
@@ -1157,7 +1248,7 @@ change font, called from each separate font mutator method</p>
|
|
1157
1248
|
|
1158
1249
|
|
1159
1250
|
<div class="method-source-code" id="change_row_height-source">
|
1160
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1251
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 664</span>
|
1161
1252
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_height</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">height</span> = <span class="ruby-value">10</span>)
|
1162
1253
|
<span class="ruby-identifier">validate_workbook</span>
|
1163
1254
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
@@ -1195,7 +1286,7 @@ change font, called from each separate font mutator method</p>
|
|
1195
1286
|
|
1196
1287
|
|
1197
1288
|
<div class="method-source-code" id="change_row_horizontal_alignment-source">
|
1198
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1289
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 557</span>
|
1199
1290
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_horizontal_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
1200
1291
|
<span class="ruby-identifier">validate_workbook</span>
|
1201
1292
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
@@ -1230,7 +1321,7 @@ change font, called from each separate font mutator method</p>
|
|
1230
1321
|
|
1231
1322
|
|
1232
1323
|
<div class="method-source-code" id="change_row_italics-source">
|
1233
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1324
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 636</span>
|
1234
1325
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_italics</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">italicized</span> = <span class="ruby-keyword">false</span>)
|
1235
1326
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1236
1327
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
|
@@ -1266,7 +1357,7 @@ change font, called from each separate font mutator method</p>
|
|
1266
1357
|
|
1267
1358
|
|
1268
1359
|
<div class="method-source-code" id="change_row_strikethrough-source">
|
1269
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1360
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 657</span>
|
1270
1361
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_strikethrough</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">struckthrough</span>=<span class="ruby-keyword">false</span>)
|
1271
1362
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1272
1363
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
|
@@ -1302,7 +1393,7 @@ change font, called from each separate font mutator method</p>
|
|
1302
1393
|
|
1303
1394
|
|
1304
1395
|
<div class="method-source-code" id="change_row_underline-source">
|
1305
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1396
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 650</span>
|
1306
1397
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_underline</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">underlined</span>=<span class="ruby-keyword">false</span>)
|
1307
1398
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1308
1399
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">dup</span>
|
@@ -1338,7 +1429,7 @@ change font, called from each separate font mutator method</p>
|
|
1338
1429
|
|
1339
1430
|
|
1340
1431
|
<div class="method-source-code" id="change_row_vertical_alignment-source">
|
1341
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1432
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 563</span>
|
1342
1433
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">change_row_vertical_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
1343
1434
|
<span class="ruby-identifier">validate_workbook</span>
|
1344
1435
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
@@ -1373,7 +1464,7 @@ change font, called from each separate font mutator method</p>
|
|
1373
1464
|
|
1374
1465
|
|
1375
1466
|
<div class="method-source-code" id="column_font-source">
|
1376
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1467
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 544</span>
|
1377
1468
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
1378
1469
|
<span class="ruby-identifier">validate_workbook</span>
|
1379
1470
|
|
@@ -1410,7 +1501,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1410
1501
|
|
1411
1502
|
|
1412
1503
|
<div class="method-source-code" id="delete_cell-source">
|
1413
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1504
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 228</span>
|
1414
1505
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_cell</span>(<span class="ruby-identifier">row_index</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">shift</span>=<span class="ruby-keyword">nil</span>)
|
1415
1506
|
<span class="ruby-identifier">validate_workbook</span>
|
1416
1507
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -1464,7 +1555,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1464
1555
|
|
1465
1556
|
|
1466
1557
|
<div class="method-source-code" id="delete_column-source">
|
1467
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1558
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 337</span>
|
1468
1559
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_column</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
|
1469
1560
|
<span class="ruby-identifier">validate_workbook</span>
|
1470
1561
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
|
@@ -1510,7 +1601,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1510
1601
|
|
1511
1602
|
|
1512
1603
|
<div class="method-source-code" id="delete_row-source">
|
1513
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1604
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 293</span>
|
1514
1605
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_row</span>(<span class="ruby-identifier">row_index</span>=<span class="ruby-value">0</span>)
|
1515
1606
|
<span class="ruby-identifier">validate_workbook</span>
|
1516
1607
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -1554,7 +1645,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1554
1645
|
|
1555
1646
|
|
1556
1647
|
<div class="method-source-code" id="get_col_style-source">
|
1557
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1648
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 503</span>
|
1558
1649
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_col_style</span>(<span class="ruby-identifier">column_index</span>)
|
1559
1650
|
<span class="ruby-identifier">range</span> = <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">locate_range</span>(<span class="ruby-identifier">column_index</span>)
|
1560
1651
|
(<span class="ruby-identifier">range</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">range</span>.<span class="ruby-identifier">style_index</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
|
@@ -1588,7 +1679,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1588
1679
|
|
1589
1680
|
|
1590
1681
|
<div class="method-source-code" id="get_cols_style_index-source">
|
1591
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1682
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 429</span>
|
1592
1683
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_cols_style_index</span>(<span class="ruby-identifier">column_index</span>)
|
1593
1684
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
|
1594
1685
|
<span class="ruby-identifier">range</span> = <span class="ruby-identifier">cols</span>.<span class="ruby-identifier">locate_range</span>(<span class="ruby-identifier">column_index</span>)
|
@@ -1623,7 +1714,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1623
1714
|
|
1624
1715
|
|
1625
1716
|
<div class="method-source-code" id="get_column_alignment-source">
|
1626
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1717
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 550</span>
|
1627
1718
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_alignment</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">type</span>)
|
1628
1719
|
<span class="ruby-identifier">validate_workbook</span>
|
1629
1720
|
|
@@ -1659,7 +1750,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1659
1750
|
|
1660
1751
|
|
1661
1752
|
<div class="method-source-code" id="get_column_border-source">
|
1662
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1753
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 528</span>
|
1663
1754
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">border_direction</span>)
|
1664
1755
|
<span class="ruby-identifier">validate_workbook</span>
|
1665
1756
|
|
@@ -1674,6 +1765,43 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1674
1765
|
|
1675
1766
|
|
1676
1767
|
|
1768
|
+
</div>
|
1769
|
+
|
1770
|
+
|
1771
|
+
<div id="method-i-get_column_border_color" class="method-detail ">
|
1772
|
+
|
1773
|
+
<div class="method-heading">
|
1774
|
+
<span class="method-name">get_column_border_color</span><span
|
1775
|
+
class="method-args">(col, border_direction)</span>
|
1776
|
+
|
1777
|
+
<span class="method-click-advice">click to toggle source</span>
|
1778
|
+
|
1779
|
+
</div>
|
1780
|
+
|
1781
|
+
|
1782
|
+
<div class="method-description">
|
1783
|
+
|
1784
|
+
|
1785
|
+
|
1786
|
+
|
1787
|
+
|
1788
|
+
|
1789
|
+
<div class="method-source-code" id="get_column_border_color-source">
|
1790
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 536</span>
|
1791
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_border_color</span>(<span class="ruby-identifier">col</span>, <span class="ruby-identifier">border_direction</span>)
|
1792
|
+
<span class="ruby-identifier">validate_workbook</span>
|
1793
|
+
|
1794
|
+
<span class="ruby-identifier">xf</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">get_cols_style_index</span>(<span class="ruby-identifier">col</span>)]
|
1795
|
+
<span class="ruby-identifier">border</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">borders</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">border_id</span>]
|
1796
|
+
<span class="ruby-identifier">border</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">border_direction</span>)
|
1797
|
+
<span class="ruby-keyword">end</span></pre>
|
1798
|
+
</div>
|
1799
|
+
|
1800
|
+
</div>
|
1801
|
+
|
1802
|
+
|
1803
|
+
|
1804
|
+
|
1677
1805
|
</div>
|
1678
1806
|
|
1679
1807
|
|
@@ -1696,7 +1824,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1696
1824
|
|
1697
1825
|
|
1698
1826
|
<div class="method-source-code" id="get_column_fill-source">
|
1699
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1827
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 508</span>
|
1700
1828
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_fill</span>(<span class="ruby-identifier">col</span>=<span class="ruby-value">0</span>)
|
1701
1829
|
<span class="ruby-identifier">validate_workbook</span>
|
1702
1830
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
|
@@ -1732,7 +1860,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1732
1860
|
|
1733
1861
|
|
1734
1862
|
<div class="method-source-code" id="get_column_font_color-source">
|
1735
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1863
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 445</span>
|
1736
1864
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_color</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
1737
1865
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
1738
1866
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> (<span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_rgb_color</span> <span class="ruby-operator">||</span> <span class="ruby-string">'000000'</span>)
|
@@ -1766,7 +1894,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1766
1894
|
|
1767
1895
|
|
1768
1896
|
<div class="method-source-code" id="get_column_font_name-source">
|
1769
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1897
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 435</span>
|
1770
1898
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_name</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
1771
1899
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
1772
1900
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
|
@@ -1800,7 +1928,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1800
1928
|
|
1801
1929
|
|
1802
1930
|
<div class="method-source-code" id="get_column_font_size-source">
|
1803
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1931
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 440</span>
|
1804
1932
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_font_size</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
1805
1933
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
1806
1934
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_size</span>
|
@@ -1835,7 +1963,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1835
1963
|
|
1836
1964
|
|
1837
1965
|
<div class="method-source-code" id="get_column_width-source">
|
1838
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1966
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 481</span>
|
1839
1967
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_width</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
|
1840
1968
|
<span class="ruby-identifier">width</span> = <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span>)
|
1841
1969
|
<span class="ruby-keyword">return</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">ColumnRange</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT_WIDTH</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">width</span>.<span class="ruby-identifier">nil?</span>
|
@@ -1870,7 +1998,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1870
1998
|
|
1871
1999
|
|
1872
2000
|
<div class="method-source-code" id="get_column_width_raw-source">
|
1873
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2001
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 471</span>
|
1874
2002
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
|
1875
2003
|
<span class="ruby-identifier">validate_workbook</span>
|
1876
2004
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
|
@@ -1907,7 +2035,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1907
2035
|
|
1908
2036
|
|
1909
2037
|
<div class="method-source-code" id="get_row_alignment-source">
|
1910
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2038
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 418</span>
|
1911
2039
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">is_horizontal</span>)
|
1912
2040
|
<span class="ruby-identifier">validate_workbook</span>
|
1913
2041
|
|
@@ -1947,7 +2075,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1947
2075
|
|
1948
2076
|
|
1949
2077
|
<div class="method-source-code" id="get_row_border-source">
|
1950
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2078
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 400</span>
|
1951
2079
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">border_direction</span>)
|
1952
2080
|
<span class="ruby-identifier">validate_workbook</span>
|
1953
2081
|
|
@@ -1961,6 +2089,42 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1961
2089
|
|
1962
2090
|
|
1963
2091
|
|
2092
|
+
</div>
|
2093
|
+
|
2094
|
+
|
2095
|
+
<div id="method-i-get_row_border_color" class="method-detail ">
|
2096
|
+
|
2097
|
+
<div class="method-heading">
|
2098
|
+
<span class="method-name">get_row_border_color</span><span
|
2099
|
+
class="method-args">(row, border_direction)</span>
|
2100
|
+
|
2101
|
+
<span class="method-click-advice">click to toggle source</span>
|
2102
|
+
|
2103
|
+
</div>
|
2104
|
+
|
2105
|
+
|
2106
|
+
<div class="method-description">
|
2107
|
+
|
2108
|
+
|
2109
|
+
|
2110
|
+
|
2111
|
+
|
2112
|
+
|
2113
|
+
<div class="method-source-code" id="get_row_border_color-source">
|
2114
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 407</span>
|
2115
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_border_color</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">border_direction</span>)
|
2116
|
+
<span class="ruby-identifier">validate_workbook</span>
|
2117
|
+
|
2118
|
+
<span class="ruby-identifier">border</span> = <span class="ruby-ivar">@workbook</span>.<span class="ruby-identifier">borders</span>[<span class="ruby-identifier">get_row_xf</span>(<span class="ruby-identifier">row</span>).<span class="ruby-identifier">border_id</span>]
|
2119
|
+
<span class="ruby-identifier">border</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">border_direction</span>)
|
2120
|
+
<span class="ruby-keyword">end</span></pre>
|
2121
|
+
</div>
|
2122
|
+
|
2123
|
+
</div>
|
2124
|
+
|
2125
|
+
|
2126
|
+
|
2127
|
+
|
1964
2128
|
</div>
|
1965
2129
|
|
1966
2130
|
|
@@ -1983,7 +2147,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1983
2147
|
|
1984
2148
|
|
1985
2149
|
<div class="method-source-code" id="get_row_fill-source">
|
1986
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2150
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 359</span>
|
1987
2151
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_fill</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
1988
2152
|
(<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>]) <span class="ruby-operator">&&</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">get_fill_color</span>
|
1989
2153
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2016,7 +2180,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2016
2180
|
|
2017
2181
|
|
2018
2182
|
<div class="method-source-code" id="get_row_font_color-source">
|
2019
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2183
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 371</span>
|
2020
2184
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_color</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2021
2185
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
|
2022
2186
|
<span class="ruby-identifier">color</span> = <span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">color</span>
|
@@ -2051,7 +2215,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2051
2215
|
|
2052
2216
|
|
2053
2217
|
<div class="method-source-code" id="get_row_font_name-source">
|
2054
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2218
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 363</span>
|
2055
2219
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_name</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2056
2220
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
|
2057
2221
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2084,7 +2248,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2084
2248
|
|
2085
2249
|
|
2086
2250
|
<div class="method-source-code" id="get_row_font_size-source">
|
2087
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2251
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 367</span>
|
2088
2252
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_font_size</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2089
2253
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_size</span>
|
2090
2254
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2117,7 +2281,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2117
2281
|
|
2118
2282
|
|
2119
2283
|
<div class="method-source-code" id="get_row_height-source">
|
2120
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2284
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 393</span>
|
2121
2285
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_height</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2122
2286
|
<span class="ruby-identifier">validate_workbook</span>
|
2123
2287
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
@@ -2153,7 +2317,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2153
2317
|
|
2154
2318
|
|
2155
2319
|
<div class="method-source-code" id="get_row_style-source">
|
2156
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2320
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 354</span>
|
2157
2321
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_style</span>(<span class="ruby-identifier">row_index</span>)
|
2158
2322
|
<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row_index</span>]
|
2159
2323
|
(<span class="ruby-identifier">row</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">style_index</span>) <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
|
@@ -2187,7 +2351,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2187
2351
|
|
2188
2352
|
|
2189
2353
|
<div class="method-source-code" id="insert_cell-source">
|
2190
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2354
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 205</span>
|
2191
2355
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">insert_cell</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">data</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">formula</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">shift</span> = <span class="ruby-keyword">nil</span>)
|
2192
2356
|
<span class="ruby-identifier">validate_workbook</span>
|
2193
2357
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">col</span>)
|
@@ -2238,7 +2402,7 @@ which reference cells which are being “pushed right”</p>
|
|
2238
2402
|
|
2239
2403
|
|
2240
2404
|
<div class="method-source-code" id="insert_column-source">
|
2241
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2405
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 310</span>
|
2242
2406
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">insert_column</span>(<span class="ruby-identifier">column_index</span> = <span class="ruby-value">0</span>)
|
2243
2407
|
<span class="ruby-identifier">validate_workbook</span>
|
2244
2408
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -2296,7 +2460,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2296
2460
|
|
2297
2461
|
|
2298
2462
|
<div class="method-source-code" id="insert_row-source">
|
2299
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2463
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 255</span>
|
2300
2464
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">insert_row</span>(<span class="ruby-identifier">row_index</span> = <span class="ruby-value">0</span>)
|
2301
2465
|
<span class="ruby-identifier">validate_workbook</span>
|
2302
2466
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -2363,7 +2527,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2363
2527
|
|
2364
2528
|
|
2365
2529
|
<div class="method-source-code" id="is_column_bolded-source">
|
2366
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2530
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 455</span>
|
2367
2531
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_bolded</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
2368
2532
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
2369
2533
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_bold</span>
|
@@ -2397,7 +2561,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2397
2561
|
|
2398
2562
|
|
2399
2563
|
<div class="method-source-code" id="is_column_italicized-source">
|
2400
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2564
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 450</span>
|
2401
2565
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_italicized</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
2402
2566
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
2403
2567
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_italic</span>
|
@@ -2431,7 +2595,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2431
2595
|
|
2432
2596
|
|
2433
2597
|
<div class="method-source-code" id="is_column_struckthrough-source">
|
2434
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2598
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 465</span>
|
2435
2599
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_struckthrough</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
2436
2600
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
2437
2601
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_strikethrough</span>
|
@@ -2465,7 +2629,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2465
2629
|
|
2466
2630
|
|
2467
2631
|
<div class="method-source-code" id="is_column_underlined-source">
|
2468
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2632
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 460</span>
|
2469
2633
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_column_underlined</span>(<span class="ruby-identifier">col</span> = <span class="ruby-value">0</span>)
|
2470
2634
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
2471
2635
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_underlined</span>
|
@@ -2499,7 +2663,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2499
2663
|
|
2500
2664
|
|
2501
2665
|
<div class="method-source-code" id="is_row_bolded-source">
|
2502
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2666
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 381</span>
|
2503
2667
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_bolded</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2504
2668
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_bold</span>
|
2505
2669
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2532,7 +2696,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2532
2696
|
|
2533
2697
|
|
2534
2698
|
<div class="method-source-code" id="is_row_italicized-source">
|
2535
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2699
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 377</span>
|
2536
2700
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_italicized</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2537
2701
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_italic</span>
|
2538
2702
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2565,7 +2729,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2565
2729
|
|
2566
2730
|
|
2567
2731
|
<div class="method-source-code" id="is_row_struckthrough-source">
|
2568
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2732
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 389</span>
|
2569
2733
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_struckthrough</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2570
2734
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_strikethrough</span>
|
2571
2735
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2598,7 +2762,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2598
2762
|
|
2599
2763
|
|
2600
2764
|
<div class="method-source-code" id="is_row_underlined-source">
|
2601
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2765
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 385</span>
|
2602
2766
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_row_underlined</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2603
2767
|
(<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)) <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_underlined</span>
|
2604
2768
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2631,7 +2795,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2631
2795
|
|
2632
2796
|
|
2633
2797
|
<div class="method-source-code" id="merge_cells-source">
|
2634
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2798
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 801</span>
|
2635
2799
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">merge_cells</span>(<span class="ruby-identifier">start_row</span>, <span class="ruby-identifier">start_col</span>, <span class="ruby-identifier">end_row</span>, <span class="ruby-identifier">end_col</span>)
|
2636
2800
|
<span class="ruby-identifier">validate_workbook</span>
|
2637
2801
|
|
@@ -2668,7 +2832,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2668
2832
|
|
2669
2833
|
|
2670
2834
|
<div class="method-source-code" id="row_font-source">
|
2671
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2835
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 414</span>
|
2672
2836
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
|
2673
2837
|
(<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">row</span>]) <span class="ruby-operator">&&</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">get_font</span>
|
2674
2838
|
<span class="ruby-keyword">end</span></pre>
|