rubyXL 3.3.16 → 3.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +3 -3
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods.rb +22 -31
- data/rdoc/README_rdoc.html +8 -6
- 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 +1 -1
- data/rdoc/RubyXL/BorderEdge.html +1 -1
- data/rdoc/RubyXL/Borders.html +1 -1
- 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 +28 -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 +1 -1
- 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 +18 -20
- 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 +71 -140
- 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 +17 -17
- 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 +2 -12
- data/rubyXL.gemspec +4 -4
- data/spec/lib/worksheet_spec.rb +70 -34
- metadata +3 -3
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.17</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
@@ -1006,10 +1006,11 @@
|
|
1006
1006
|
<div class="method-source-code" id="modify_alignment-source">
|
1007
1007
|
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 151</span>
|
1008
1008
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_alignment</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
1009
|
-
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
|
1009
|
+
<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>
|
1010
1010
|
<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span>.<span class="ruby-identifier">new</span>
|
1011
|
-
<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">apply_alignment</span> = <span class="ruby-keyword">true</span>
|
1012
1011
|
<span class="ruby-keyword">yield</span>(<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span>)
|
1012
|
+
<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">apply_alignment</span> = <span class="ruby-keyword">true</span>
|
1013
|
+
|
1013
1014
|
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">xf</span>)
|
1014
1015
|
<span class="ruby-keyword">end</span></pre>
|
1015
1016
|
</div>
|
@@ -1043,18 +1044,16 @@
|
|
1043
1044
|
<div class="method-source-code" id="modify_border-source">
|
1044
1045
|
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 168</span>
|
1045
1046
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_border</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
1046
|
-
<span class="ruby-identifier">
|
1047
|
-
<span class="ruby-identifier">new_border</span> = <span class="ruby-identifier">borders</span>[<span class="ruby-identifier">
|
1047
|
+
<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>
|
1048
|
+
<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>
|
1048
1049
|
<span class="ruby-identifier">new_border</span>.<span class="ruby-identifier">set_edge_style</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
1049
1050
|
|
1050
|
-
<span class="ruby-identifier">
|
1051
|
-
<span class="ruby-identifier">
|
1052
|
-
|
1053
|
-
<span class="ruby-identifier">
|
1054
|
-
<span class="ruby-identifier">new_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>
|
1055
|
-
<span class="ruby-identifier">borders</span>[<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">border_id</span>] = <span class="ruby-identifier">new_border</span>
|
1051
|
+
<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>
|
1052
|
+
<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>
|
1053
|
+
<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>
|
1054
|
+
<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">apply_border</span> = <span class="ruby-keyword">true</span>
|
1056
1055
|
|
1057
|
-
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">
|
1056
|
+
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">xf</span>)
|
1058
1057
|
<span class="ruby-keyword">end</span></pre>
|
1059
1058
|
</div>
|
1060
1059
|
|
@@ -1085,14 +1084,13 @@
|
|
1085
1084
|
|
1086
1085
|
|
1087
1086
|
<div class="method-source-code" id="modify_fill-source">
|
1088
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1087
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 160</span>
|
1089
1088
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_fill</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">rgb</span>)
|
1090
|
-
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
|
1089
|
+
<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>
|
1091
1090
|
<span class="ruby-identifier">new_fill</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Fill</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:pattern_fill</span> =<span class="ruby-operator">></span>
|
1092
1091
|
<span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">PatternFill</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:pattern_type</span> =<span class="ruby-operator">></span> <span class="ruby-string">'solid'</span>,
|
1093
1092
|
<span class="ruby-value">:fg_color</span> =<span class="ruby-operator">></span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:rgb</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">rgb</span>)))
|
1094
|
-
<span class="ruby-identifier">
|
1095
|
-
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>)
|
1093
|
+
<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">register_new_fill</span>(<span class="ruby-identifier">new_fill</span>, <span class="ruby-identifier">xf</span>))
|
1096
1094
|
<span class="ruby-keyword">end</span></pre>
|
1097
1095
|
</div>
|
1098
1096
|
|
@@ -1127,7 +1125,7 @@
|
|
1127
1125
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_fill</span>(<span class="ruby-identifier">new_fill</span>, <span class="ruby-identifier">old_xf</span>)
|
1128
1126
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
1129
1127
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">apply_fill</span> = <span class="ruby-keyword">true</span>
|
1130
|
-
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">fill_id</span> = <span class="ruby-identifier">fills</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_fill</span> } <span class="ruby-comment">#
|
1128
|
+
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">fill_id</span> = <span class="ruby-identifier">fills</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_fill</span> } <span class="ruby-comment"># Reuse existing fill, if it exists</span>
|
1131
1129
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">fill_id</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">fills</span>.<span class="ruby-identifier">size</span> <span class="ruby-comment"># If this fill has never existed before, add it to collection.</span>
|
1132
1130
|
<span class="ruby-identifier">fills</span>[<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">fill_id</span>] = <span class="ruby-identifier">new_fill</span>
|
1133
1131
|
<span class="ruby-identifier">new_xf</span>
|
@@ -1164,10 +1162,10 @@
|
|
1164
1162
|
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 135</span>
|
1165
1163
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_font</span>(<span class="ruby-identifier">new_font</span>, <span class="ruby-identifier">old_xf</span>)
|
1166
1164
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
|
1167
|
-
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">
|
1168
|
-
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">font_id</span> = <span class="ruby-identifier">fonts</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_font</span> } <span class="ruby-comment"># Use existing font, if it exists</span>
|
1165
|
+
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">font_id</span> = <span class="ruby-identifier">fonts</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_font</span> } <span class="ruby-comment"># Reuse existing font, if it exists</span>
|
1169
1166
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">font_id</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">fonts</span>.<span class="ruby-identifier">size</span> <span class="ruby-comment"># If this font has never existed before, add it to collection.</span>
|
1170
1167
|
<span class="ruby-identifier">fonts</span>[<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">font_id</span>] = <span class="ruby-identifier">new_font</span>
|
1168
|
+
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">apply_font</span> = <span class="ruby-keyword">true</span>
|
1171
1169
|
<span class="ruby-identifier">new_xf</span>
|
1172
1170
|
<span class="ruby-keyword">end</span></pre>
|
1173
1171
|
</div>
|
@@ -1201,7 +1199,7 @@
|
|
1201
1199
|
<div class="method-source-code" id="register_new_xf-source">
|
1202
1200
|
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 144</span>
|
1203
1201
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>)
|
1204
|
-
<span class="ruby-identifier">new_xf_id</span> = <span class="ruby-identifier">cell_xfs</span>.<span class="ruby-identifier">find_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">xf</span><span class="ruby-operator">|</span> <span class="ruby-identifier">xf</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">new_xf</span> } <span class="ruby-comment">#
|
1202
|
+
<span class="ruby-identifier">new_xf_id</span> = <span class="ruby-identifier">cell_xfs</span>.<span class="ruby-identifier">find_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">xf</span><span class="ruby-operator">|</span> <span class="ruby-identifier">xf</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">new_xf</span> } <span class="ruby-comment"># Reuse existing XF, if it exists</span>
|
1205
1203
|
<span class="ruby-identifier">new_xf_id</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">cell_xfs</span>.<span class="ruby-identifier">size</span> <span class="ruby-comment"># If this XF has never existed before, add it to collection.</span>
|
1206
1204
|
<span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">new_xf_id</span>] = <span class="ruby-identifier">new_xf</span>
|
1207
1205
|
<span class="ruby-identifier">new_xf_id</span>
|
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.17</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "../";
|
@@ -163,12 +163,8 @@
|
|
163
163
|
|
164
164
|
<li ><a href="#method-i-get_row_height">#get_row_height</a>
|
165
165
|
|
166
|
-
<li ><a href="#method-i-get_row_horizontal_alignment">#get_row_horizontal_alignment</a>
|
167
|
-
|
168
166
|
<li ><a href="#method-i-get_row_style">#get_row_style</a>
|
169
167
|
|
170
|
-
<li ><a href="#method-i-get_row_vertical_alignment">#get_row_vertical_alignment</a>
|
171
|
-
|
172
168
|
<li ><a href="#method-i-insert_cell">#insert_cell</a>
|
173
169
|
|
174
170
|
<li ><a href="#method-i-insert_column">#insert_column</a>
|
@@ -292,7 +288,7 @@
|
|
292
288
|
|
293
289
|
|
294
290
|
<div class="method-source-code" id="change_column_alignment-source">
|
295
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
291
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 733</span>
|
296
292
|
<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>)
|
297
293
|
<span class="ruby-identifier">validate_workbook</span>
|
298
294
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -336,7 +332,7 @@
|
|
336
332
|
|
337
333
|
|
338
334
|
<div class="method-source-code" id="change_column_bold-source">
|
339
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
335
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 679</span>
|
340
336
|
<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>)
|
341
337
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
342
338
|
<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>
|
@@ -372,7 +368,7 @@
|
|
372
368
|
|
373
369
|
|
374
370
|
<div class="method-source-code" id="change_column_border-source">
|
375
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
371
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 708</span>
|
376
372
|
<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>)
|
377
373
|
<span class="ruby-identifier">validate_workbook</span>
|
378
374
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -413,7 +409,7 @@
|
|
413
409
|
|
414
410
|
|
415
411
|
<div class="method-source-code" id="change_column_fill-source">
|
416
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
412
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 496</span>
|
417
413
|
<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>)
|
418
414
|
<span class="ruby-identifier">validate_workbook</span>
|
419
415
|
<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>)
|
@@ -456,7 +452,7 @@ change font, called from each separate font mutator method</p>
|
|
456
452
|
|
457
453
|
|
458
454
|
<div class="method-source-code" id="change_column_font-source">
|
459
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
455
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 636</span>
|
460
456
|
<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>)
|
461
457
|
<span class="ruby-identifier">validate_workbook</span>
|
462
458
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -498,7 +494,7 @@ change font, called from each separate font mutator method</p>
|
|
498
494
|
|
499
495
|
|
500
496
|
<div class="method-source-code" id="change_column_font_color-source">
|
501
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
497
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 663</span>
|
502
498
|
<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>)
|
503
499
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
|
504
500
|
|
@@ -536,7 +532,7 @@ change font, called from each separate font mutator method</p>
|
|
536
532
|
|
537
533
|
|
538
534
|
<div class="method-source-code" id="change_column_font_name-source">
|
539
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
535
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 649</span>
|
540
536
|
<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>)
|
541
537
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
542
538
|
<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>
|
@@ -572,7 +568,7 @@ change font, called from each separate font mutator method</p>
|
|
572
568
|
|
573
569
|
|
574
570
|
<div class="method-source-code" id="change_column_font_size-source">
|
575
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
571
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 656</span>
|
576
572
|
<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>)
|
577
573
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
578
574
|
<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>
|
@@ -608,7 +604,7 @@ change font, called from each separate font mutator method</p>
|
|
608
604
|
|
609
605
|
|
610
606
|
<div class="method-source-code" id="change_column_horizontal_alignment-source">
|
611
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
607
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 700</span>
|
612
608
|
<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>)
|
613
609
|
<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> }
|
614
610
|
<span class="ruby-keyword">end</span></pre>
|
@@ -641,7 +637,7 @@ change font, called from each separate font mutator method</p>
|
|
641
637
|
|
642
638
|
|
643
639
|
<div class="method-source-code" id="change_column_italics-source">
|
644
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
640
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 672</span>
|
645
641
|
<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>)
|
646
642
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
647
643
|
<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>
|
@@ -677,7 +673,7 @@ change font, called from each separate font mutator method</p>
|
|
677
673
|
|
678
674
|
|
679
675
|
<div class="method-source-code" id="change_column_strikethrough-source">
|
680
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
676
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 693</span>
|
681
677
|
<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>)
|
682
678
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
683
679
|
<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>
|
@@ -713,7 +709,7 @@ change font, called from each separate font mutator method</p>
|
|
713
709
|
|
714
710
|
|
715
711
|
<div class="method-source-code" id="change_column_underline-source">
|
716
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
712
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 686</span>
|
717
713
|
<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>)
|
718
714
|
<span class="ruby-identifier">xf</span> = <span class="ruby-identifier">get_col_xf</span>(<span class="ruby-identifier">column_index</span>)
|
719
715
|
<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>
|
@@ -749,7 +745,7 @@ change font, called from each separate font mutator method</p>
|
|
749
745
|
|
750
746
|
|
751
747
|
<div class="method-source-code" id="change_column_vertical_alignment-source">
|
752
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
748
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 704</span>
|
753
749
|
<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>)
|
754
750
|
<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> }
|
755
751
|
<span class="ruby-keyword">end</span></pre>
|
@@ -783,7 +779,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
783
779
|
|
784
780
|
|
785
781
|
<div class="method-source-code" id="change_column_width-source">
|
786
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
782
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 479</span>
|
787
783
|
<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>)
|
788
784
|
<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>)
|
789
785
|
<span class="ruby-keyword">end</span></pre>
|
@@ -816,7 +812,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
816
812
|
|
817
813
|
|
818
814
|
<div class="method-source-code" id="change_column_width_raw-source">
|
819
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
815
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 469</span>
|
820
816
|
<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>)
|
821
817
|
<span class="ruby-identifier">validate_workbook</span>
|
822
818
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -853,7 +849,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
853
849
|
|
854
850
|
|
855
851
|
<div class="method-source-code" id="change_row_alignment-source">
|
856
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
852
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 720</span>
|
857
853
|
<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>)
|
858
854
|
<span class="ruby-identifier">validate_workbook</span>
|
859
855
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
@@ -895,7 +891,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
895
891
|
|
896
892
|
|
897
893
|
<div class="method-source-code" id="change_row_bold-source">
|
898
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
894
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 604</span>
|
899
895
|
<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>)
|
900
896
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
901
897
|
<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>
|
@@ -931,7 +927,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
931
927
|
|
932
928
|
|
933
929
|
<div class="method-source-code" id="change_row_border-source">
|
934
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
930
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 542</span>
|
935
931
|
<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>)
|
936
932
|
<span class="ruby-identifier">validate_workbook</span>
|
937
933
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
@@ -971,7 +967,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
971
967
|
|
972
968
|
|
973
969
|
<div class="method-source-code" id="change_row_fill-source">
|
974
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
970
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 553</span>
|
975
971
|
<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>)
|
976
972
|
<span class="ruby-identifier">validate_workbook</span>
|
977
973
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -1013,7 +1009,7 @@ change font, called from each separate font mutator method</p>
|
|
1013
1009
|
|
1014
1010
|
|
1015
1011
|
<div class="method-source-code" id="change_row_font-source">
|
1016
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1012
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 565</span>
|
1017
1013
|
<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>)
|
1018
1014
|
<span class="ruby-identifier">validate_workbook</span>
|
1019
1015
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -1052,7 +1048,7 @@ change font, called from each separate font mutator method</p>
|
|
1052
1048
|
|
1053
1049
|
|
1054
1050
|
<div class="method-source-code" id="change_row_font_color-source">
|
1055
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1051
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 589</span>
|
1056
1052
|
<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>)
|
1057
1053
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1058
1054
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
|
@@ -1089,7 +1085,7 @@ change font, called from each separate font mutator method</p>
|
|
1089
1085
|
|
1090
1086
|
|
1091
1087
|
<div class="method-source-code" id="change_row_font_name-source">
|
1092
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1088
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 575</span>
|
1093
1089
|
<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>)
|
1094
1090
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1095
1091
|
<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>
|
@@ -1125,7 +1121,7 @@ change font, called from each separate font mutator method</p>
|
|
1125
1121
|
|
1126
1122
|
|
1127
1123
|
<div class="method-source-code" id="change_row_font_size-source">
|
1128
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1124
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 582</span>
|
1129
1125
|
<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>)
|
1130
1126
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1131
1127
|
<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>
|
@@ -1161,7 +1157,7 @@ change font, called from each separate font mutator method</p>
|
|
1161
1157
|
|
1162
1158
|
|
1163
1159
|
<div class="method-source-code" id="change_row_height-source">
|
1164
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1160
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 625</span>
|
1165
1161
|
<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>)
|
1166
1162
|
<span class="ruby-identifier">validate_workbook</span>
|
1167
1163
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
@@ -1199,7 +1195,7 @@ change font, called from each separate font mutator method</p>
|
|
1199
1195
|
|
1200
1196
|
|
1201
1197
|
<div class="method-source-code" id="change_row_horizontal_alignment-source">
|
1202
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1198
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 530</span>
|
1203
1199
|
<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>)
|
1204
1200
|
<span class="ruby-identifier">validate_workbook</span>
|
1205
1201
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
@@ -1234,7 +1230,7 @@ change font, called from each separate font mutator method</p>
|
|
1234
1230
|
|
1235
1231
|
|
1236
1232
|
<div class="method-source-code" id="change_row_italics-source">
|
1237
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1233
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 597</span>
|
1238
1234
|
<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>)
|
1239
1235
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1240
1236
|
<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>
|
@@ -1270,7 +1266,7 @@ change font, called from each separate font mutator method</p>
|
|
1270
1266
|
|
1271
1267
|
|
1272
1268
|
<div class="method-source-code" id="change_row_strikethrough-source">
|
1273
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1269
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 618</span>
|
1274
1270
|
<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>)
|
1275
1271
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1276
1272
|
<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>
|
@@ -1306,7 +1302,7 @@ change font, called from each separate font mutator method</p>
|
|
1306
1302
|
|
1307
1303
|
|
1308
1304
|
<div class="method-source-code" id="change_row_underline-source">
|
1309
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1305
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 611</span>
|
1310
1306
|
<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>)
|
1311
1307
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>)
|
1312
1308
|
<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>
|
@@ -1342,7 +1338,7 @@ change font, called from each separate font mutator method</p>
|
|
1342
1338
|
|
1343
1339
|
|
1344
1340
|
<div class="method-source-code" id="change_row_vertical_alignment-source">
|
1345
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1341
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 536</span>
|
1346
1342
|
<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>)
|
1347
1343
|
<span class="ruby-identifier">validate_workbook</span>
|
1348
1344
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
@@ -1377,7 +1373,7 @@ change font, called from each separate font mutator method</p>
|
|
1377
1373
|
|
1378
1374
|
|
1379
1375
|
<div class="method-source-code" id="column_font-source">
|
1380
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1376
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 517</span>
|
1381
1377
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
1382
1378
|
<span class="ruby-identifier">validate_workbook</span>
|
1383
1379
|
|
@@ -1414,7 +1410,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1414
1410
|
|
1415
1411
|
|
1416
1412
|
<div class="method-source-code" id="delete_cell-source">
|
1417
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1413
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 216</span>
|
1418
1414
|
<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>)
|
1419
1415
|
<span class="ruby-identifier">validate_workbook</span>
|
1420
1416
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -1468,7 +1464,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1468
1464
|
|
1469
1465
|
|
1470
1466
|
<div class="method-source-code" id="delete_column-source">
|
1471
|
-
<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 325</span>
|
1472
1468
|
<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>)
|
1473
1469
|
<span class="ruby-identifier">validate_workbook</span>
|
1474
1470
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
|
@@ -1514,7 +1510,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1514
1510
|
|
1515
1511
|
|
1516
1512
|
<div class="method-source-code" id="delete_row-source">
|
1517
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1513
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 281</span>
|
1518
1514
|
<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>)
|
1519
1515
|
<span class="ruby-identifier">validate_workbook</span>
|
1520
1516
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -1558,7 +1554,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1558
1554
|
|
1559
1555
|
|
1560
1556
|
<div class="method-source-code" id="get_col_style-source">
|
1561
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1557
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 484</span>
|
1562
1558
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_col_style</span>(<span class="ruby-identifier">column_index</span>)
|
1563
1559
|
<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>)
|
1564
1560
|
(<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>
|
@@ -1592,7 +1588,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1592
1588
|
|
1593
1589
|
|
1594
1590
|
<div class="method-source-code" id="get_cols_style_index-source">
|
1595
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1591
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 410</span>
|
1596
1592
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_cols_style_index</span>(<span class="ruby-identifier">column_index</span>)
|
1597
1593
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
|
1598
1594
|
<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>)
|
@@ -1627,7 +1623,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1627
1623
|
|
1628
1624
|
|
1629
1625
|
<div class="method-source-code" id="get_column_alignment-source">
|
1630
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1626
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 523</span>
|
1631
1627
|
<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>)
|
1632
1628
|
<span class="ruby-identifier">validate_workbook</span>
|
1633
1629
|
|
@@ -1663,7 +1659,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1663
1659
|
|
1664
1660
|
|
1665
1661
|
<div class="method-source-code" id="get_column_border-source">
|
1666
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1662
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 509</span>
|
1667
1663
|
<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>)
|
1668
1664
|
<span class="ruby-identifier">validate_workbook</span>
|
1669
1665
|
|
@@ -1700,7 +1696,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1700
1696
|
|
1701
1697
|
|
1702
1698
|
<div class="method-source-code" id="get_column_fill-source">
|
1703
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1699
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 489</span>
|
1704
1700
|
<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>)
|
1705
1701
|
<span class="ruby-identifier">validate_workbook</span>
|
1706
1702
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">col</span>)
|
@@ -1736,7 +1732,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1736
1732
|
|
1737
1733
|
|
1738
1734
|
<div class="method-source-code" id="get_column_font_color-source">
|
1739
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1735
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 426</span>
|
1740
1736
|
<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>)
|
1741
1737
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
1742
1738
|
<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>)
|
@@ -1770,7 +1766,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1770
1766
|
|
1771
1767
|
|
1772
1768
|
<div class="method-source-code" id="get_column_font_name-source">
|
1773
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1769
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 416</span>
|
1774
1770
|
<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>)
|
1775
1771
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
1776
1772
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_name</span>
|
@@ -1804,7 +1800,7 @@ specified, method will shift column contents below the deleted cell upward</p>
|
|
1804
1800
|
|
1805
1801
|
|
1806
1802
|
<div class="method-source-code" id="get_column_font_size-source">
|
1807
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1803
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 421</span>
|
1808
1804
|
<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>)
|
1809
1805
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
1810
1806
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">get_size</span>
|
@@ -1839,7 +1835,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1839
1835
|
|
1840
1836
|
|
1841
1837
|
<div class="method-source-code" id="get_column_width-source">
|
1842
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1838
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 462</span>
|
1843
1839
|
<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>)
|
1844
1840
|
<span class="ruby-identifier">width</span> = <span class="ruby-identifier">get_column_width_raw</span>(<span class="ruby-identifier">column_index</span>)
|
1845
1841
|
<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>
|
@@ -1874,7 +1870,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1874
1870
|
|
1875
1871
|
|
1876
1872
|
<div class="method-source-code" id="get_column_width_raw-source">
|
1877
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1873
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 452</span>
|
1878
1874
|
<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>)
|
1879
1875
|
<span class="ruby-identifier">validate_workbook</span>
|
1880
1876
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">column_index</span>)
|
@@ -1911,7 +1907,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1911
1907
|
|
1912
1908
|
|
1913
1909
|
<div class="method-source-code" id="get_row_alignment-source">
|
1914
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1910
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 399</span>
|
1915
1911
|
<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>)
|
1916
1912
|
<span class="ruby-identifier">validate_workbook</span>
|
1917
1913
|
|
@@ -1951,7 +1947,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1951
1947
|
|
1952
1948
|
|
1953
1949
|
<div class="method-source-code" id="get_row_border-source">
|
1954
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1950
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 388</span>
|
1955
1951
|
<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>)
|
1956
1952
|
<span class="ruby-identifier">validate_workbook</span>
|
1957
1953
|
|
@@ -1987,7 +1983,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
1987
1983
|
|
1988
1984
|
|
1989
1985
|
<div class="method-source-code" id="get_row_fill-source">
|
1990
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
1986
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 347</span>
|
1991
1987
|
<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>)
|
1992
1988
|
(<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>
|
1993
1989
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2020,7 +2016,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2020
2016
|
|
2021
2017
|
|
2022
2018
|
<div class="method-source-code" id="get_row_font_color-source">
|
2023
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2019
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 359</span>
|
2024
2020
|
<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>)
|
2025
2021
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
|
2026
2022
|
<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>
|
@@ -2055,7 +2051,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2055
2051
|
|
2056
2052
|
|
2057
2053
|
<div class="method-source-code" id="get_row_font_name-source">
|
2058
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2054
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 351</span>
|
2059
2055
|
<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>)
|
2060
2056
|
(<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>
|
2061
2057
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2088,7 +2084,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2088
2084
|
|
2089
2085
|
|
2090
2086
|
<div class="method-source-code" id="get_row_font_size-source">
|
2091
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2087
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 355</span>
|
2092
2088
|
<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>)
|
2093
2089
|
(<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>
|
2094
2090
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2121,7 +2117,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2121
2117
|
|
2122
2118
|
|
2123
2119
|
<div class="method-source-code" id="get_row_height-source">
|
2124
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2120
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 381</span>
|
2125
2121
|
<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>)
|
2126
2122
|
<span class="ruby-identifier">validate_workbook</span>
|
2127
2123
|
<span class="ruby-identifier">validate_nonnegative</span>(<span class="ruby-identifier">row</span>)
|
@@ -2135,40 +2131,6 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2135
2131
|
|
2136
2132
|
|
2137
2133
|
|
2138
|
-
</div>
|
2139
|
-
|
2140
|
-
|
2141
|
-
<div id="method-i-get_row_horizontal_alignment" class="method-detail ">
|
2142
|
-
|
2143
|
-
<div class="method-heading">
|
2144
|
-
<span class="method-name">get_row_horizontal_alignment</span><span
|
2145
|
-
class="method-args">(row = 0)</span>
|
2146
|
-
|
2147
|
-
<span class="method-click-advice">click to toggle source</span>
|
2148
|
-
|
2149
|
-
</div>
|
2150
|
-
|
2151
|
-
|
2152
|
-
<div class="method-description">
|
2153
|
-
|
2154
|
-
|
2155
|
-
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
<div class="method-source-code" id="get_row_horizontal_alignment-source">
|
2160
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 409</span>
|
2161
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_horizontal_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2162
|
-
<span class="ruby-identifier">warn</span> <span class="ruby-node">"[DEPRECATION] `#{__method__}` is deprecated. Please use `get_row_alignment` instead."</span>
|
2163
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-keyword">true</span>)
|
2164
|
-
<span class="ruby-keyword">end</span></pre>
|
2165
|
-
</div>
|
2166
|
-
|
2167
|
-
</div>
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
2134
|
</div>
|
2173
2135
|
|
2174
2136
|
|
@@ -2191,7 +2153,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2191
2153
|
|
2192
2154
|
|
2193
2155
|
<div class="method-source-code" id="get_row_style-source">
|
2194
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2156
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 342</span>
|
2195
2157
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_style</span>(<span class="ruby-identifier">row_index</span>)
|
2196
2158
|
<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>]
|
2197
2159
|
(<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>
|
@@ -2203,40 +2165,6 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2203
2165
|
|
2204
2166
|
|
2205
2167
|
|
2206
|
-
</div>
|
2207
|
-
|
2208
|
-
|
2209
|
-
<div id="method-i-get_row_vertical_alignment" class="method-detail ">
|
2210
|
-
|
2211
|
-
<div class="method-heading">
|
2212
|
-
<span class="method-name">get_row_vertical_alignment</span><span
|
2213
|
-
class="method-args">(row = 0)</span>
|
2214
|
-
|
2215
|
-
<span class="method-click-advice">click to toggle source</span>
|
2216
|
-
|
2217
|
-
</div>
|
2218
|
-
|
2219
|
-
|
2220
|
-
<div class="method-description">
|
2221
|
-
|
2222
|
-
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2227
|
-
<div class="method-source-code" id="get_row_vertical_alignment-source">
|
2228
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 414</span>
|
2229
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_row_vertical_alignment</span>(<span class="ruby-identifier">row</span> = <span class="ruby-value">0</span>)
|
2230
|
-
<span class="ruby-identifier">warn</span> <span class="ruby-node">"[DEPRECATION] `#{__method__}` is deprecated. Please use `get_row_alignment` instead."</span>
|
2231
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-identifier">row</span>, <span class="ruby-keyword">false</span>)
|
2232
|
-
<span class="ruby-keyword">end</span></pre>
|
2233
|
-
</div>
|
2234
|
-
|
2235
|
-
</div>
|
2236
|
-
|
2237
|
-
|
2238
|
-
|
2239
|
-
|
2240
2168
|
</div>
|
2241
2169
|
|
2242
2170
|
|
@@ -2259,7 +2187,7 @@ href="http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet
|
|
2259
2187
|
|
2260
2188
|
|
2261
2189
|
<div class="method-source-code" id="insert_cell-source">
|
2262
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2190
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 193</span>
|
2263
2191
|
<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>)
|
2264
2192
|
<span class="ruby-identifier">validate_workbook</span>
|
2265
2193
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">col</span>)
|
@@ -2310,7 +2238,7 @@ which reference cells which are being “pushed right”</p>
|
|
2310
2238
|
|
2311
2239
|
|
2312
2240
|
<div class="method-source-code" id="insert_column-source">
|
2313
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2241
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 298</span>
|
2314
2242
|
<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>)
|
2315
2243
|
<span class="ruby-identifier">validate_workbook</span>
|
2316
2244
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-value">0</span>, <span class="ruby-identifier">column_index</span>)
|
@@ -2368,7 +2296,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2368
2296
|
|
2369
2297
|
|
2370
2298
|
<div class="method-source-code" id="insert_row-source">
|
2371
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2299
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 243</span>
|
2372
2300
|
<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>)
|
2373
2301
|
<span class="ruby-identifier">validate_workbook</span>
|
2374
2302
|
<span class="ruby-identifier">ensure_cell_exists</span>(<span class="ruby-identifier">row_index</span>)
|
@@ -2395,10 +2323,13 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2395
2323
|
<span class="ruby-identifier">new_row</span> = <span class="ruby-identifier">add_row</span>(<span class="ruby-identifier">row_index</span>, <span class="ruby-value">:cells</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">new_cells</span>, <span class="ruby-value">:style_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">old_row</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">old_row</span>.<span class="ruby-identifier">style_index</span>)
|
2396
2324
|
|
2397
2325
|
<span class="ruby-comment"># Update row values for all rows below</span>
|
2398
|
-
<span class="ruby-identifier">row_index</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">
|
2399
|
-
<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">
|
2326
|
+
<span class="ruby-identifier">row_index</span>.<span class="ruby-identifier">upto</span>(<span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span>
|
2327
|
+
<span class="ruby-identifier">row</span> = <span class="ruby-identifier">sheet_data</span>.<span class="ruby-identifier">rows</span>[<span class="ruby-identifier">r</span>]
|
2400
2328
|
<span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">row</span>.<span class="ruby-identifier">nil?</span>
|
2401
|
-
<span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">
|
2329
|
+
<span class="ruby-identifier">row</span>.<span class="ruby-identifier">cells</span>.<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">cell</span>, <span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
2330
|
+
<span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">cell</span>.<span class="ruby-identifier">nil?</span>
|
2331
|
+
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">r</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Reference</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">r</span>, <span class="ruby-identifier">c</span>)
|
2332
|
+
}
|
2402
2333
|
}
|
2403
2334
|
|
2404
2335
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">new_row</span>
|
@@ -2432,7 +2363,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2432
2363
|
|
2433
2364
|
|
2434
2365
|
<div class="method-source-code" id="is_column_bolded-source">
|
2435
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2366
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 436</span>
|
2436
2367
|
<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>)
|
2437
2368
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
2438
2369
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_bold</span>
|
@@ -2466,7 +2397,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2466
2397
|
|
2467
2398
|
|
2468
2399
|
<div class="method-source-code" id="is_column_italicized-source">
|
2469
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2400
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 431</span>
|
2470
2401
|
<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>)
|
2471
2402
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
2472
2403
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_italic</span>
|
@@ -2500,7 +2431,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2500
2431
|
|
2501
2432
|
|
2502
2433
|
<div class="method-source-code" id="is_column_struckthrough-source">
|
2503
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2434
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 446</span>
|
2504
2435
|
<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>)
|
2505
2436
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
2506
2437
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_strikethrough</span>
|
@@ -2534,7 +2465,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2534
2465
|
|
2535
2466
|
|
2536
2467
|
<div class="method-source-code" id="is_column_underlined-source">
|
2537
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2468
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 441</span>
|
2538
2469
|
<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>)
|
2539
2470
|
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">column_font</span>(<span class="ruby-identifier">col</span>)
|
2540
2471
|
<span class="ruby-identifier">font</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">font</span>.<span class="ruby-identifier">is_underlined</span>
|
@@ -2568,7 +2499,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2568
2499
|
|
2569
2500
|
|
2570
2501
|
<div class="method-source-code" id="is_row_bolded-source">
|
2571
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2502
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 369</span>
|
2572
2503
|
<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>)
|
2573
2504
|
(<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>
|
2574
2505
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2601,7 +2532,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2601
2532
|
|
2602
2533
|
|
2603
2534
|
<div class="method-source-code" id="is_row_italicized-source">
|
2604
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2535
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 365</span>
|
2605
2536
|
<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>)
|
2606
2537
|
(<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>
|
2607
2538
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2634,7 +2565,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2634
2565
|
|
2635
2566
|
|
2636
2567
|
<div class="method-source-code" id="is_row_struckthrough-source">
|
2637
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2568
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 377</span>
|
2638
2569
|
<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>)
|
2639
2570
|
(<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>
|
2640
2571
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2667,7 +2598,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2667
2598
|
|
2668
2599
|
|
2669
2600
|
<div class="method-source-code" id="is_row_underlined-source">
|
2670
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2601
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 373</span>
|
2671
2602
|
<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>)
|
2672
2603
|
(<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>
|
2673
2604
|
<span class="ruby-keyword">end</span></pre>
|
@@ -2700,7 +2631,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2700
2631
|
|
2701
2632
|
|
2702
2633
|
<div class="method-source-code" id="merge_cells-source">
|
2703
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2634
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 749</span>
|
2704
2635
|
<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>)
|
2705
2636
|
<span class="ruby-identifier">validate_workbook</span>
|
2706
2637
|
|
@@ -2737,7 +2668,7 @@ formulas which reference cells which are being “pushed down”</p>
|
|
2737
2668
|
|
2738
2669
|
|
2739
2670
|
<div class="method-source-code" id="row_font-source">
|
2740
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line
|
2671
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods.rb, line 395</span>
|
2741
2672
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">row_font</span>(<span class="ruby-identifier">row</span>)
|
2742
2673
|
(<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>
|
2743
2674
|
<span class="ruby-keyword">end</span></pre>
|