rubyXL 3.4.5 → 3.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -1
- data/Gemfile +3 -3
- data/Gemfile.lock +76 -51
- data/LICENSE.txt +1 -1
- data/README.rdoc +10 -2
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods/cell.rb +11 -1
- data/lib/rubyXL/convenience_methods/color.rb +5 -3
- data/lib/rubyXL/convenience_methods/worksheet.rb +77 -0
- data/lib/rubyXL/objects/chartsheet.rb +1 -1
- data/lib/rubyXL/objects/data_validation.rb +2 -0
- data/lib/rubyXL/objects/document_properties.rb +2 -2
- data/lib/rubyXL/objects/external_links.rb +25 -1
- data/lib/rubyXL/objects/ooxml_object.rb +13 -1
- data/lib/rubyXL/objects/relationships.rb +1 -1
- data/lib/rubyXL/objects/sheet_data.rb +11 -4
- data/lib/rubyXL/objects/storage.rb +1 -0
- data/lib/rubyXL/objects/text.rb +1 -1
- data/lib/rubyXL/objects/theme.rb +1 -1
- data/lib/rubyXL/objects/workbook.rb +24 -10
- data/lib/rubyXL/objects/worksheet.rb +7 -7
- data/lib/rubyXL/worksheet.rb +2 -0
- data/rdoc/README_rdoc.html +22 -10
- data/rdoc/RubyXL/AExtension.html +14 -51
- data/rdoc/RubyXL/AExtensionStorageArea.html +10 -14
- data/rdoc/RubyXL/ActiveX.html +16 -42
- data/rdoc/RubyXL/ActiveXBinary.html +10 -19
- data/rdoc/RubyXL/AdjustHandleList.html +10 -14
- data/rdoc/RubyXL/Alignment.html +10 -14
- data/rdoc/RubyXL/AlternateContent.html +10 -14
- data/rdoc/RubyXL/Authors.html +10 -14
- data/rdoc/RubyXL/AutoFilter.html +10 -14
- data/rdoc/RubyXL/AutoFilterColumn.html +10 -14
- data/rdoc/RubyXL/BinaryImageFile.html +10 -22
- data/rdoc/RubyXL/BodyProperties.html +10 -14
- data/rdoc/RubyXL/BooleanNode.html +10 -14
- data/rdoc/RubyXL/BooleanValue.html +10 -14
- data/rdoc/RubyXL/Border.html +13 -70
- data/rdoc/RubyXL/BorderEdge.html +13 -44
- data/rdoc/RubyXL/Borders.html +13 -31
- data/rdoc/RubyXL/Break.html +10 -14
- data/rdoc/RubyXL/BreakList.html +10 -14
- data/rdoc/RubyXL/CT_AdjPoint2D.html +10 -14
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +10 -14
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +10 -14
- data/rdoc/RubyXL/CT_Backdrop.html +10 -14
- data/rdoc/RubyXL/CT_Bevel.html +10 -14
- data/rdoc/RubyXL/CT_BiLevelEffect.html +10 -14
- data/rdoc/RubyXL/CT_BlendEffect.html +10 -14
- data/rdoc/RubyXL/CT_Blip.html +10 -14
- data/rdoc/RubyXL/CT_BlipFillProperties.html +10 -14
- data/rdoc/RubyXL/CT_BlurEffect.html +10 -14
- data/rdoc/RubyXL/CT_Camera.html +10 -14
- data/rdoc/RubyXL/CT_Color.html +10 -14
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +10 -14
- data/rdoc/RubyXL/CT_ColorMapping.html +10 -14
- data/rdoc/RubyXL/CT_ColorScheme.html +10 -14
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +10 -14
- data/rdoc/RubyXL/CT_ConnectionSite.html +10 -14
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +10 -14
- data/rdoc/RubyXL/CT_DashStop.html +10 -14
- data/rdoc/RubyXL/CT_DashStopList.html +10 -14
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +10 -14
- data/rdoc/RubyXL/CT_DuotoneEffect.html +10 -14
- data/rdoc/RubyXL/CT_EffectContainer.html +10 -14
- data/rdoc/RubyXL/CT_EffectList.html +10 -14
- data/rdoc/RubyXL/CT_EffectReference.html +10 -14
- data/rdoc/RubyXL/CT_EffectStyleItem.html +10 -14
- data/rdoc/RubyXL/CT_EffectStyleList.html +10 -14
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +10 -14
- data/rdoc/RubyXL/CT_FillEffect.html +10 -14
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +10 -14
- data/rdoc/RubyXL/CT_FillStyleList.html +10 -14
- data/rdoc/RubyXL/CT_FlatText.html +10 -14
- data/rdoc/RubyXL/CT_FontCollection.html +10 -14
- data/rdoc/RubyXL/CT_FontReference.html +10 -14
- data/rdoc/RubyXL/CT_GeomGuideList.html +10 -14
- data/rdoc/RubyXL/CT_GlowEffect.html +10 -14
- data/rdoc/RubyXL/CT_GradientFillProperties.html +10 -14
- data/rdoc/RubyXL/CT_GradientStop.html +10 -14
- data/rdoc/RubyXL/CT_GradientStopList.html +10 -14
- data/rdoc/RubyXL/CT_HSLEffect.html +10 -14
- data/rdoc/RubyXL/CT_HslColor.html +10 -14
- data/rdoc/RubyXL/CT_Hyperlink.html +10 -14
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +10 -14
- data/rdoc/RubyXL/CT_LightRig.html +10 -14
- data/rdoc/RubyXL/CT_LineEndProperties.html +10 -14
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +10 -14
- data/rdoc/RubyXL/CT_LineProperties.html +10 -14
- data/rdoc/RubyXL/CT_LineStyleList.html +10 -14
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +10 -14
- data/rdoc/RubyXL/CT_LuminanceEffect.html +10 -14
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +10 -14
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +10 -14
- data/rdoc/RubyXL/CT_Path2D.html +10 -14
- data/rdoc/RubyXL/CT_Path2DArcTo.html +10 -14
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +10 -14
- data/rdoc/RubyXL/CT_Path2DList.html +10 -14
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +10 -14
- data/rdoc/RubyXL/CT_Path2DTo.html +10 -14
- data/rdoc/RubyXL/CT_PathShadeProperties.html +10 -14
- data/rdoc/RubyXL/CT_PatternFillProperties.html +10 -14
- data/rdoc/RubyXL/CT_Point3D.html +10 -14
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +10 -14
- data/rdoc/RubyXL/CT_PresetColor.html +10 -14
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +10 -14
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +10 -14
- data/rdoc/RubyXL/CT_PresetTextShape.html +10 -14
- data/rdoc/RubyXL/CT_ReflectionEffect.html +10 -14
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +10 -14
- data/rdoc/RubyXL/CT_RelativeRect.html +10 -14
- data/rdoc/RubyXL/CT_SRgbColor.html +10 -14
- data/rdoc/RubyXL/CT_ScRgbColor.html +10 -14
- data/rdoc/RubyXL/CT_Scene3D.html +10 -14
- data/rdoc/RubyXL/CT_SchemeColor.html +10 -14
- data/rdoc/RubyXL/CT_Shape3D.html +10 -14
- data/rdoc/RubyXL/CT_ShapeStyle.html +10 -14
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +10 -14
- data/rdoc/RubyXL/CT_SphereCoords.html +10 -14
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +10 -14
- data/rdoc/RubyXL/CT_StyleMatrix.html +10 -14
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +10 -14
- data/rdoc/RubyXL/CT_SupplementalFont.html +10 -14
- data/rdoc/RubyXL/CT_SystemColor.html +10 -14
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +10 -14
- data/rdoc/RubyXL/CT_TextBlipBullet.html +10 -14
- data/rdoc/RubyXL/CT_TextCharBullet.html +10 -14
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +10 -14
- data/rdoc/RubyXL/CT_TextFont.html +10 -14
- data/rdoc/RubyXL/CT_TextListStyle.html +10 -14
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +10 -14
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +10 -14
- data/rdoc/RubyXL/CT_TextSpacing.html +10 -14
- data/rdoc/RubyXL/CT_TextTabStop.html +10 -14
- data/rdoc/RubyXL/CT_TextTabStopList.html +10 -14
- data/rdoc/RubyXL/CT_TileInfoProperties.html +10 -14
- data/rdoc/RubyXL/CT_TintEffect.html +10 -14
- data/rdoc/RubyXL/CT_Transform2D.html +10 -14
- data/rdoc/RubyXL/CT_TransformEffect.html +10 -14
- data/rdoc/RubyXL/CT_Vector3D.html +10 -14
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +10 -14
- data/rdoc/RubyXL/CalculationChain.html +13 -39
- data/rdoc/RubyXL/CalculationChainCell.html +10 -14
- data/rdoc/RubyXL/CalculationProperties.html +10 -14
- data/rdoc/RubyXL/Cell.html +28 -221
- data/rdoc/RubyXL/CellConvenienceMethods.html +70 -475
- data/rdoc/RubyXL/CellExt.html +10 -14
- data/rdoc/RubyXL/CellSmartTag.html +10 -14
- data/rdoc/RubyXL/CellSmartTagProperty.html +10 -14
- data/rdoc/RubyXL/CellSmartTags.html +10 -14
- data/rdoc/RubyXL/CellStyle.html +10 -14
- data/rdoc/RubyXL/CellStyleXFs.html +13 -31
- data/rdoc/RubyXL/CellStyles.html +13 -31
- data/rdoc/RubyXL/CellValue.html +13 -31
- data/rdoc/RubyXL/CellWatch.html +10 -14
- data/rdoc/RubyXL/CellWatches.html +10 -14
- data/rdoc/RubyXL/CellXFs.html +13 -31
- data/rdoc/RubyXL/ChartColorsFile.html +10 -22
- data/rdoc/RubyXL/ChartFile.html +15 -44
- data/rdoc/RubyXL/ChartStyleFile.html +10 -22
- data/rdoc/RubyXL/ChartUserShapesFile.html +10 -22
- data/rdoc/RubyXL/Chartsheet.html +15 -61
- data/rdoc/RubyXL/ChartsheetPageSetup.html +10 -14
- data/rdoc/RubyXL/ChartsheetProperties.html +10 -14
- data/rdoc/RubyXL/ChartsheetProtection.html +10 -14
- data/rdoc/RubyXL/ChartsheetView.html +10 -14
- data/rdoc/RubyXL/ChartsheetViews.html +10 -14
- data/rdoc/RubyXL/Color.html +13 -36
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +15 -60
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +19 -76
- data/rdoc/RubyXL/ColorConvenienceClasses.html +8 -11
- data/rdoc/RubyXL/ColorConvenienceMethods.html +11 -28
- data/rdoc/RubyXL/ColorFilter.html +10 -14
- data/rdoc/RubyXL/ColorScale.html +10 -14
- data/rdoc/RubyXL/ColorSet.html +10 -14
- data/rdoc/RubyXL/Colors.html +10 -14
- data/rdoc/RubyXL/ColumnRange.html +13 -62
- data/rdoc/RubyXL/ColumnRanges.html +13 -70
- data/rdoc/RubyXL/Comment.html +10 -14
- data/rdoc/RubyXL/CommentList.html +10 -14
- data/rdoc/RubyXL/CommentsFile.html +13 -44
- data/rdoc/RubyXL/ConditionalFormatValue.html +10 -14
- data/rdoc/RubyXL/ConditionalFormatting.html +10 -14
- data/rdoc/RubyXL/ConditionalFormattingRule.html +10 -14
- data/rdoc/RubyXL/Connection.html +10 -14
- data/rdoc/RubyXL/ConnectionTable.html +10 -14
- data/rdoc/RubyXL/ConnectionTables.html +10 -14
- data/rdoc/RubyXL/ConnectionTextField.html +10 -14
- data/rdoc/RubyXL/ConnectionTextFields.html +10 -14
- data/rdoc/RubyXL/Connections.html +13 -39
- data/rdoc/RubyXL/ContentTypeDefault.html +10 -14
- data/rdoc/RubyXL/ContentTypeOverride.html +10 -14
- data/rdoc/RubyXL/ContentTypes.html +13 -52
- data/rdoc/RubyXL/ControlPropertiesFile.html +12 -19
- data/rdoc/RubyXL/CorePropertiesFile.html +15 -150
- data/rdoc/RubyXL/CustomColor.html +10 -14
- data/rdoc/RubyXL/CustomColorList.html +10 -14
- data/rdoc/RubyXL/CustomFilter.html +10 -14
- data/rdoc/RubyXL/CustomFilters.html +10 -14
- data/rdoc/RubyXL/CustomGeometry.html +10 -14
- data/rdoc/RubyXL/CustomProperties.html +10 -14
- data/rdoc/RubyXL/CustomPropertiesFile.html +10 -22
- data/rdoc/RubyXL/CustomProperty.html +10 -14
- data/rdoc/RubyXL/CustomPropertyFile.html +10 -22
- data/rdoc/RubyXL/CustomSheetView.html +10 -14
- data/rdoc/RubyXL/CustomSheetViews.html +10 -14
- data/rdoc/RubyXL/CustomWorkbookView.html +10 -14
- data/rdoc/RubyXL/CustomWorkbookViews.html +10 -14
- data/rdoc/RubyXL/CustomXMLFile.html +10 -19
- data/rdoc/RubyXL/DXF.html +10 -14
- data/rdoc/RubyXL/DXFs.html +10 -14
- data/rdoc/RubyXL/DataBar.html +10 -14
- data/rdoc/RubyXL/DataConsolidate.html +10 -14
- data/rdoc/RubyXL/DataConsolidationReference.html +10 -14
- data/rdoc/RubyXL/DataConsolidationReferences.html +10 -14
- data/rdoc/RubyXL/DataType.html +8 -34
- data/rdoc/RubyXL/DataValidation.html +10 -14
- data/rdoc/RubyXL/DataValidations.html +10 -14
- data/rdoc/RubyXL/DateGroupItem.html +10 -14
- data/rdoc/RubyXL/DefinedName.html +10 -14
- data/rdoc/RubyXL/DefinedNameExt.html +10 -14
- data/rdoc/RubyXL/DefinedNames.html +10 -14
- data/rdoc/RubyXL/DefinedNamesExt.html +10 -14
- data/rdoc/RubyXL/DocumentPropertiesFile.html +13 -57
- data/rdoc/RubyXL/DrawingFile.html +15 -44
- data/rdoc/RubyXL/DynamicFilter.html +10 -14
- data/rdoc/RubyXL/EmbeddedControl.html +10 -14
- data/rdoc/RubyXL/EmbeddedControls.html +10 -14
- data/rdoc/RubyXL/Extension.html +10 -14
- data/rdoc/RubyXL/ExtensionStorageArea.html +10 -14
- data/rdoc/RubyXL/Extents.html +10 -14
- data/rdoc/RubyXL/ExternalBook.html +10 -14
- data/rdoc/RubyXL/ExternalLinksFile.html +16 -45
- data/rdoc/RubyXL/ExternalReference.html +10 -14
- data/rdoc/RubyXL/ExternalReferences.html +10 -14
- data/rdoc/RubyXL/ExtraColorSchemeList.html +10 -14
- data/rdoc/RubyXL/FieldItem.html +10 -14
- data/rdoc/RubyXL/FileRecoveryProperties.html +10 -14
- data/rdoc/RubyXL/FileSharing.html +10 -14
- data/rdoc/RubyXL/FileVersion.html +10 -14
- data/rdoc/RubyXL/Fill.html +13 -31
- data/rdoc/RubyXL/Fills.html +13 -31
- data/rdoc/RubyXL/FilterContainer.html +10 -14
- data/rdoc/RubyXL/FloatNode.html +10 -14
- data/rdoc/RubyXL/FloatValue.html +10 -14
- data/rdoc/RubyXL/Font.html +13 -36
- data/rdoc/RubyXL/FontConvenienceMethods.html +11 -197
- data/rdoc/RubyXL/FontScheme.html +10 -14
- data/rdoc/RubyXL/Fonts.html +13 -31
- data/rdoc/RubyXL/Formula.html +10 -14
- data/rdoc/RubyXL/FunctionGroup.html +10 -14
- data/rdoc/RubyXL/FunctionGroups.html +10 -14
- data/rdoc/RubyXL/GenericStorageObject.html +14 -75
- data/rdoc/RubyXL/GradientFill.html +10 -14
- data/rdoc/RubyXL/HeaderFooterSettings.html +10 -14
- data/rdoc/RubyXL/Hyperlink.html +10 -14
- data/rdoc/RubyXL/HyperlinkRelFile.html +10 -19
- data/rdoc/RubyXL/Hyperlinks.html +10 -14
- data/rdoc/RubyXL/IconFilter.html +10 -14
- data/rdoc/RubyXL/IconSet.html +10 -14
- data/rdoc/RubyXL/IgnoredError.html +10 -14
- data/rdoc/RubyXL/IgnoredErrors.html +10 -14
- data/rdoc/RubyXL/IndexedColors.html +10 -14
- data/rdoc/RubyXL/InputCells.html +10 -14
- data/rdoc/RubyXL/IntegerNode.html +10 -14
- data/rdoc/RubyXL/IntegerValue.html +10 -14
- data/rdoc/RubyXL/LegacyCell.html +11 -28
- data/rdoc/RubyXL/LegacyWorksheet.html +16 -88
- data/rdoc/RubyXL/MRUColors.html +10 -14
- data/rdoc/RubyXL/MacrosFile.html +10 -22
- data/rdoc/RubyXL/MergedCell.html +10 -14
- data/rdoc/RubyXL/MergedCells.html +10 -14
- data/rdoc/RubyXL/NumFmt.html +10 -14
- data/rdoc/RubyXL/NumberFormat.html +13 -31
- data/rdoc/RubyXL/NumberFormats.html +13 -36
- data/rdoc/RubyXL/OLEObject.html +10 -14
- data/rdoc/RubyXL/OLEObjectFile.html +10 -22
- data/rdoc/RubyXL/OLEObjects.html +10 -14
- data/rdoc/RubyXL/OLESize.html +10 -14
- data/rdoc/RubyXL/OOXMLContainerObject.html +24 -116
- data/rdoc/RubyXL/OOXMLIgnored.html +14 -46
- data/rdoc/RubyXL/OOXMLObject.html +12 -19
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +39 -84
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +28 -141
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +15 -169
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +19 -103
- data/rdoc/RubyXL/OdbcOleDbProperties.html +10 -14
- data/rdoc/RubyXL/Offset.html +10 -14
- data/rdoc/RubyXL/OlapProperties.html +10 -14
- data/rdoc/RubyXL/OleItem.html +99 -0
- data/rdoc/RubyXL/OleItems.html +99 -0
- data/rdoc/RubyXL/OleLink.html +99 -0
- data/rdoc/RubyXL/OutlineProperties.html +10 -14
- data/rdoc/RubyXL/PageMargins.html +10 -14
- data/rdoc/RubyXL/PageSetup.html +10 -14
- data/rdoc/RubyXL/PageSetupProperties.html +10 -14
- data/rdoc/RubyXL/Pane.html +10 -14
- data/rdoc/RubyXL/Parser.html +13 -44
- data/rdoc/RubyXL/PatternFill.html +10 -14
- data/rdoc/RubyXL/PhoneticProperties.html +10 -14
- data/rdoc/RubyXL/PhoneticRun.html +10 -14
- data/rdoc/RubyXL/PivotArea.html +10 -14
- data/rdoc/RubyXL/PivotCache.html +10 -14
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +12 -27
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +10 -22
- data/rdoc/RubyXL/PivotCaches.html +10 -14
- data/rdoc/RubyXL/PivotReference.html +10 -14
- data/rdoc/RubyXL/PivotReferences.html +10 -14
- data/rdoc/RubyXL/PivotTableFile.html +12 -27
- data/rdoc/RubyXL/PivotTableSelection.html +10 -14
- data/rdoc/RubyXL/PresetGeometry.html +10 -14
- data/rdoc/RubyXL/PrintOptions.html +10 -14
- data/rdoc/RubyXL/PrinterSettingsFile.html +10 -22
- data/rdoc/RubyXL/ProtectedRange.html +10 -14
- data/rdoc/RubyXL/ProtectedRanges.html +10 -14
- data/rdoc/RubyXL/Protection.html +10 -14
- data/rdoc/RubyXL/QueryParameter.html +10 -14
- data/rdoc/RubyXL/QueryParameters.html +10 -14
- data/rdoc/RubyXL/QueryTable.html +15 -44
- data/rdoc/RubyXL/QueryTableDeletedField.html +10 -14
- data/rdoc/RubyXL/QueryTableDeletedFields.html +10 -14
- data/rdoc/RubyXL/QueryTableField.html +10 -14
- data/rdoc/RubyXL/QueryTableFields.html +10 -14
- data/rdoc/RubyXL/QueryTableRefresh.html +10 -14
- data/rdoc/RubyXL/RID.html +10 -14
- data/rdoc/RubyXL/RawOOXML.html +14 -51
- data/rdoc/RubyXL/Reference.html +14 -192
- data/rdoc/RubyXL/Relationship.html +10 -14
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +11 -28
- data/rdoc/RubyXL/RelationshipSupport.html +14 -108
- data/rdoc/RubyXL/RevisionPointer.html +10 -14
- data/rdoc/RubyXL/RichText.html +14 -32
- data/rdoc/RubyXL/RichTextRun.html +13 -31
- data/rdoc/RubyXL/Row.html +22 -154
- data/rdoc/RubyXL/RowExt.html +10 -14
- data/rdoc/RubyXL/RunProperties.html +10 -14
- data/rdoc/RubyXL/Scenario.html +10 -14
- data/rdoc/RubyXL/Scenarios.html +10 -14
- data/rdoc/RubyXL/Selection.html +13 -31
- data/rdoc/RubyXL/ShapeGuide.html +10 -14
- data/rdoc/RubyXL/ShapeTextRectangle.html +10 -14
- data/rdoc/RubyXL/SharedStringsTable.html +14 -121
- data/rdoc/RubyXL/Sheet.html +10 -14
- data/rdoc/RubyXL/SheetCalculationProperties.html +10 -14
- data/rdoc/RubyXL/SheetData.html +15 -46
- data/rdoc/RubyXL/SheetDataExt.html +10 -14
- data/rdoc/RubyXL/SheetDataSet.html +10 -14
- data/rdoc/RubyXL/SheetName.html +10 -14
- data/rdoc/RubyXL/SheetNames.html +10 -14
- data/rdoc/RubyXL/Sheets.html +10 -14
- data/rdoc/RubyXL/SlicerCacheFile.html +10 -22
- data/rdoc/RubyXL/SlicerFile.html +10 -22
- data/rdoc/RubyXL/SmartTagProperties.html +10 -14
- data/rdoc/RubyXL/SmartTagType.html +10 -14
- data/rdoc/RubyXL/SmartTagTypes.html +10 -14
- data/rdoc/RubyXL/SmartTags.html +10 -14
- data/rdoc/RubyXL/SortCondition.html +10 -14
- data/rdoc/RubyXL/SortState.html +10 -14
- data/rdoc/RubyXL/Sqref.html +14 -46
- data/rdoc/RubyXL/Stop.html +10 -14
- data/rdoc/RubyXL/StringNode.html +10 -14
- data/rdoc/RubyXL/StringNodeW3C.html +14 -46
- data/rdoc/RubyXL/StringValue.html +10 -14
- data/rdoc/RubyXL/Stylesheet.html +14 -94
- data/rdoc/RubyXL/TableFile.html +10 -22
- data/rdoc/RubyXL/TableParts.html +10 -14
- data/rdoc/RubyXL/TableStyle.html +10 -14
- data/rdoc/RubyXL/TableStyles.html +10 -14
- data/rdoc/RubyXL/Text.html +13 -52
- data/rdoc/RubyXL/TextImportSettings.html +10 -14
- data/rdoc/RubyXL/Theme.html +14 -67
- data/rdoc/RubyXL/ThemeElements.html +10 -14
- data/rdoc/RubyXL/ThumbnailFile.html +10 -22
- data/rdoc/RubyXL/Top10.html +10 -14
- data/rdoc/RubyXL/VMLDrawingFile.html +12 -27
- data/rdoc/RubyXL/Variant.html +10 -14
- data/rdoc/RubyXL/Vector.html +13 -31
- data/rdoc/RubyXL/VectorValue.html +10 -14
- data/rdoc/RubyXL/VisualProperties.html +10 -14
- data/rdoc/RubyXL/WebPublishObject.html +10 -14
- data/rdoc/RubyXL/WebPublishObjects.html +10 -14
- data/rdoc/RubyXL/WebPublishingItem.html +10 -14
- data/rdoc/RubyXL/WebPublishingItems.html +10 -14
- data/rdoc/RubyXL/WebPublishingProperties.html +10 -14
- data/rdoc/RubyXL/WebQueryProperties.html +10 -14
- data/rdoc/RubyXL/Workbook.html +76 -465
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +11 -223
- data/rdoc/RubyXL/WorkbookProperties.html +10 -14
- data/rdoc/RubyXL/WorkbookProtection.html +10 -14
- data/rdoc/RubyXL/WorkbookRoot.html +16 -101
- data/rdoc/RubyXL/WorkbookView.html +10 -14
- data/rdoc/RubyXL/WorkbookViews.html +10 -14
- data/rdoc/RubyXL/Worksheet.html +16 -132
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +171 -987
- data/rdoc/RubyXL/WorksheetDimensions.html +10 -14
- data/rdoc/RubyXL/WorksheetFormatProperties.html +10 -14
- data/rdoc/RubyXL/WorksheetProperties.html +10 -14
- data/rdoc/RubyXL/WorksheetProtection.html +10 -14
- data/rdoc/RubyXL/WorksheetView.html +10 -14
- data/rdoc/RubyXL/WorksheetViews.html +10 -14
- data/rdoc/RubyXL/XF.html +10 -14
- data/rdoc/RubyXL.html +11 -321
- data/rdoc/created.rid +26 -26
- data/rdoc/css/rdoc.css +55 -6
- data/rdoc/index.html +13 -390
- data/rdoc/js/darkfish.js +22 -99
- data/rdoc/js/navigation.js +4 -40
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search.js +32 -31
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js +6 -6
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +33 -7
- data/rubyXL.gemspec +24 -31
- data/spec/lib/cell_spec.rb +44 -2
- data/spec/lib/rgb_color_spec.rb +16 -0
- data/spec/lib/worksheet_spec.rb +301 -0
- metadata +12 -10
- data/rdoc/js/jquery.js +0 -4
|
@@ -4,21 +4,23 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>module RubyXL::CellConvenienceMethods - rubyXL 3.4.
|
|
7
|
+
<title>module RubyXL::CellConvenienceMethods - rubyXL 3.4.18</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
11
11
|
var index_rel_prefix = "../";
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
|
-
<script src="../js/
|
|
15
|
-
<script src="../js/
|
|
14
|
+
<script src="../js/navigation.js" defer></script>
|
|
15
|
+
<script src="../js/search.js" defer></script>
|
|
16
|
+
<script src="../js/search_index.js" defer></script>
|
|
17
|
+
<script src="../js/searcher.js" defer></script>
|
|
18
|
+
<script src="../js/darkfish.js" defer></script>
|
|
16
19
|
|
|
17
20
|
<link href="../css/fonts.css" rel="stylesheet">
|
|
18
21
|
<link href="../css/rdoc.css" rel="stylesheet">
|
|
19
22
|
|
|
20
23
|
|
|
21
|
-
|
|
22
24
|
<body id="top" role="document" class="module">
|
|
23
25
|
<nav role="navigation">
|
|
24
26
|
<div id="project-navigation">
|
|
@@ -58,78 +60,46 @@
|
|
|
58
60
|
|
|
59
61
|
|
|
60
62
|
|
|
61
|
-
|
|
63
|
+
|
|
64
|
+
<!-- Method Quickref -->
|
|
62
65
|
<div id="method-list-section" class="nav-section">
|
|
63
66
|
<h3>Methods</h3>
|
|
64
67
|
|
|
65
68
|
<ul class="link-list" role="directory">
|
|
66
|
-
|
|
67
69
|
<li ><a href="#method-i-change_border">#change_border</a>
|
|
68
|
-
|
|
69
70
|
<li ><a href="#method-i-change_border_color">#change_border_color</a>
|
|
70
|
-
|
|
71
71
|
<li ><a href="#method-i-change_contents">#change_contents</a>
|
|
72
|
-
|
|
73
72
|
<li ><a href="#method-i-change_fill">#change_fill</a>
|
|
74
|
-
|
|
75
73
|
<li ><a href="#method-i-change_font_bold">#change_font_bold</a>
|
|
76
|
-
|
|
77
74
|
<li ><a href="#method-i-change_font_color">#change_font_color</a>
|
|
78
|
-
|
|
79
75
|
<li ><a href="#method-i-change_font_italics">#change_font_italics</a>
|
|
80
|
-
|
|
81
76
|
<li ><a href="#method-i-change_font_name">#change_font_name</a>
|
|
82
|
-
|
|
83
77
|
<li ><a href="#method-i-change_font_size">#change_font_size</a>
|
|
84
|
-
|
|
85
78
|
<li ><a href="#method-i-change_font_strikethrough">#change_font_strikethrough</a>
|
|
86
|
-
|
|
87
79
|
<li ><a href="#method-i-change_font_underline">#change_font_underline</a>
|
|
88
|
-
|
|
89
80
|
<li ><a href="#method-i-change_horizontal_alignment">#change_horizontal_alignment</a>
|
|
90
|
-
|
|
91
81
|
<li ><a href="#method-i-change_text_indent">#change_text_indent</a>
|
|
92
|
-
|
|
93
82
|
<li ><a href="#method-i-change_text_rotation">#change_text_rotation</a>
|
|
94
|
-
|
|
95
83
|
<li ><a href="#method-i-change_text_wrap">#change_text_wrap</a>
|
|
96
|
-
|
|
97
84
|
<li ><a href="#method-i-change_vertical_alignment">#change_vertical_alignment</a>
|
|
98
|
-
|
|
99
85
|
<li ><a href="#method-i-fill_color">#fill_color</a>
|
|
100
|
-
|
|
101
86
|
<li ><a href="#method-i-font_color">#font_color</a>
|
|
102
|
-
|
|
103
87
|
<li ><a href="#method-i-font_name">#font_name</a>
|
|
104
|
-
|
|
105
88
|
<li ><a href="#method-i-font_size">#font_size</a>
|
|
106
|
-
|
|
107
89
|
<li ><a href="#method-i-font_switch">#font_switch</a>
|
|
108
|
-
|
|
109
90
|
<li ><a href="#method-i-get_border">#get_border</a>
|
|
110
|
-
|
|
111
91
|
<li ><a href="#method-i-get_border_color">#get_border_color</a>
|
|
112
|
-
|
|
113
92
|
<li ><a href="#method-i-horizontal_alignment">#horizontal_alignment</a>
|
|
114
|
-
|
|
115
93
|
<li ><a href="#method-i-is_bolded">#is_bolded</a>
|
|
116
|
-
|
|
117
94
|
<li ><a href="#method-i-is_italicized">#is_italicized</a>
|
|
118
|
-
|
|
119
95
|
<li ><a href="#method-i-is_struckthrough">#is_struckthrough</a>
|
|
120
|
-
|
|
121
96
|
<li ><a href="#method-i-is_underlined">#is_underlined</a>
|
|
122
|
-
|
|
97
|
+
<li ><a href="#method-i-remove_formula">#remove_formula</a>
|
|
123
98
|
<li ><a href="#method-i-set_number_format">#set_number_format</a>
|
|
124
|
-
|
|
125
99
|
<li ><a href="#method-i-text_indent">#text_indent</a>
|
|
126
|
-
|
|
127
100
|
<li ><a href="#method-i-text_rotation">#text_rotation</a>
|
|
128
|
-
|
|
129
101
|
<li ><a href="#method-i-text_wrap">#text_wrap</a>
|
|
130
|
-
|
|
131
102
|
<li ><a href="#method-i-vertical_alignment">#vertical_alignment</a>
|
|
132
|
-
|
|
133
103
|
</ul>
|
|
134
104
|
</div>
|
|
135
105
|
|
|
@@ -145,110 +115,72 @@
|
|
|
145
115
|
|
|
146
116
|
</section>
|
|
147
117
|
|
|
148
|
-
|
|
149
118
|
<section id="5Buntitled-5D" class="documentation-section">
|
|
150
|
-
|
|
151
119
|
|
|
152
|
-
|
|
153
120
|
|
|
154
|
-
|
|
155
121
|
|
|
156
|
-
|
|
157
122
|
|
|
158
|
-
|
|
123
|
+
|
|
159
124
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
160
125
|
<header>
|
|
161
126
|
<h3>Public Instance Methods</h3>
|
|
162
127
|
</header>
|
|
163
128
|
|
|
164
|
-
|
|
165
129
|
<div id="method-i-change_border" class="method-detail ">
|
|
166
|
-
|
|
167
130
|
<div class="method-heading">
|
|
168
131
|
<span class="method-name">change_border</span><span
|
|
169
132
|
class="method-args">(direction, weight)</span>
|
|
170
|
-
|
|
171
133
|
<span class="method-click-advice">click to toggle source</span>
|
|
172
|
-
|
|
173
134
|
</div>
|
|
174
|
-
|
|
175
135
|
|
|
176
136
|
<div class="method-description">
|
|
177
137
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
138
|
|
|
182
|
-
|
|
183
139
|
<div class="method-source-code" id="change_border-source">
|
|
184
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
140
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 67</span>
|
|
185
141
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_border</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
|
186
142
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
187
143
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_border</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
|
|
188
144
|
<span class="ruby-keyword">end</span></pre>
|
|
189
145
|
</div>
|
|
190
|
-
|
|
191
146
|
</div>
|
|
192
147
|
|
|
193
|
-
|
|
194
148
|
|
|
195
|
-
|
|
196
149
|
</div>
|
|
197
150
|
|
|
198
|
-
|
|
199
151
|
<div id="method-i-change_border_color" class="method-detail ">
|
|
200
|
-
|
|
201
152
|
<div class="method-heading">
|
|
202
153
|
<span class="method-name">change_border_color</span><span
|
|
203
154
|
class="method-args">(direction, color)</span>
|
|
204
|
-
|
|
205
155
|
<span class="method-click-advice">click to toggle source</span>
|
|
206
|
-
|
|
207
156
|
</div>
|
|
208
|
-
|
|
209
157
|
|
|
210
158
|
<div class="method-description">
|
|
211
159
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
160
|
|
|
216
|
-
|
|
217
161
|
<div class="method-source-code" id="change_border_color-source">
|
|
218
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
162
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 72</span>
|
|
219
163
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_border_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
|
220
164
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
221
165
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color</span>)
|
|
222
166
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_border_color</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
|
223
167
|
<span class="ruby-keyword">end</span></pre>
|
|
224
168
|
</div>
|
|
225
|
-
|
|
226
169
|
</div>
|
|
227
170
|
|
|
228
|
-
|
|
229
171
|
|
|
230
|
-
|
|
231
172
|
</div>
|
|
232
173
|
|
|
233
|
-
|
|
234
174
|
<div id="method-i-change_contents" class="method-detail ">
|
|
235
|
-
|
|
236
175
|
<div class="method-heading">
|
|
237
176
|
<span class="method-name">change_contents</span><span
|
|
238
177
|
class="method-args">(data, formula_expression = nil)</span>
|
|
239
|
-
|
|
240
178
|
<span class="method-click-advice">click to toggle source</span>
|
|
241
|
-
|
|
242
179
|
</div>
|
|
243
|
-
|
|
244
180
|
|
|
245
181
|
<div class="method-description">
|
|
246
182
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
183
|
|
|
251
|
-
|
|
252
184
|
<div class="method-source-code" id="change_contents-source">
|
|
253
185
|
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 4</span>
|
|
254
186
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_contents</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">formula_expression</span> = <span class="ruby-keyword">nil</span>)
|
|
@@ -269,70 +201,46 @@
|
|
|
269
201
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw_value</span> = <span class="ruby-identifier">data</span>
|
|
270
202
|
<span class="ruby-keyword">end</span></pre>
|
|
271
203
|
</div>
|
|
272
|
-
|
|
273
204
|
</div>
|
|
274
205
|
|
|
275
|
-
|
|
276
206
|
|
|
277
|
-
|
|
278
207
|
</div>
|
|
279
208
|
|
|
280
|
-
|
|
281
209
|
<div id="method-i-change_fill" class="method-detail ">
|
|
282
|
-
|
|
283
210
|
<div class="method-heading">
|
|
284
211
|
<span class="method-name">change_fill</span><span
|
|
285
212
|
class="method-args">(rgb = 'ffffff')</span>
|
|
286
|
-
|
|
287
213
|
<span class="method-click-advice">click to toggle source</span>
|
|
288
|
-
|
|
289
214
|
</div>
|
|
290
|
-
|
|
291
215
|
|
|
292
216
|
<div class="method-description">
|
|
293
|
-
|
|
294
217
|
<p>Changes fill color of cell</p>
|
|
295
|
-
|
|
296
|
-
|
|
297
218
|
|
|
298
|
-
|
|
299
219
|
<div class="method-source-code" id="change_fill-source">
|
|
300
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
220
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 161</span>
|
|
301
221
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_fill</span>(<span class="ruby-identifier">rgb</span> = <span class="ruby-string">'ffffff'</span>)
|
|
302
222
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
303
223
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">rgb</span>)
|
|
304
224
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_fill</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">rgb</span>)
|
|
305
225
|
<span class="ruby-keyword">end</span></pre>
|
|
306
226
|
</div>
|
|
307
|
-
|
|
308
227
|
</div>
|
|
309
228
|
|
|
310
|
-
|
|
311
229
|
|
|
312
|
-
|
|
313
230
|
</div>
|
|
314
231
|
|
|
315
|
-
|
|
316
232
|
<div id="method-i-change_font_bold" class="method-detail ">
|
|
317
|
-
|
|
318
233
|
<div class="method-heading">
|
|
319
234
|
<span class="method-name">change_font_bold</span><span
|
|
320
235
|
class="method-args">(bolded = false)</span>
|
|
321
|
-
|
|
322
236
|
<span class="method-click-advice">click to toggle source</span>
|
|
323
|
-
|
|
324
237
|
</div>
|
|
325
|
-
|
|
326
238
|
|
|
327
239
|
<div class="method-description">
|
|
328
|
-
|
|
329
240
|
<p>Changes font bold settings of cell</p>
|
|
330
|
-
|
|
331
|
-
|
|
332
241
|
|
|
333
|
-
|
|
334
242
|
<div class="method-source-code" id="change_font_bold-source">
|
|
335
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
243
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 206</span>
|
|
336
244
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_bold</span>(<span class="ruby-identifier">bolded</span> = <span class="ruby-keyword">false</span>)
|
|
337
245
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
338
246
|
|
|
@@ -341,35 +249,23 @@
|
|
|
341
249
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
342
250
|
<span class="ruby-keyword">end</span></pre>
|
|
343
251
|
</div>
|
|
344
|
-
|
|
345
252
|
</div>
|
|
346
253
|
|
|
347
|
-
|
|
348
254
|
|
|
349
|
-
|
|
350
255
|
</div>
|
|
351
256
|
|
|
352
|
-
|
|
353
257
|
<div id="method-i-change_font_color" class="method-detail ">
|
|
354
|
-
|
|
355
258
|
<div class="method-heading">
|
|
356
259
|
<span class="method-name">change_font_color</span><span
|
|
357
260
|
class="method-args">(font_color = '000000')</span>
|
|
358
|
-
|
|
359
261
|
<span class="method-click-advice">click to toggle source</span>
|
|
360
|
-
|
|
361
262
|
</div>
|
|
362
|
-
|
|
363
263
|
|
|
364
264
|
<div class="method-description">
|
|
365
|
-
|
|
366
265
|
<p>Changes font color of cell</p>
|
|
367
|
-
|
|
368
|
-
|
|
369
266
|
|
|
370
|
-
|
|
371
267
|
<div class="method-source-code" id="change_font_color-source">
|
|
372
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
268
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 187</span>
|
|
373
269
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_color</span>(<span class="ruby-identifier">font_color</span> = <span class="ruby-string">'000000'</span>)
|
|
374
270
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
375
271
|
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
|
|
@@ -379,35 +275,23 @@
|
|
|
379
275
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
380
276
|
<span class="ruby-keyword">end</span></pre>
|
|
381
277
|
</div>
|
|
382
|
-
|
|
383
278
|
</div>
|
|
384
279
|
|
|
385
|
-
|
|
386
280
|
|
|
387
|
-
|
|
388
281
|
</div>
|
|
389
282
|
|
|
390
|
-
|
|
391
283
|
<div id="method-i-change_font_italics" class="method-detail ">
|
|
392
|
-
|
|
393
284
|
<div class="method-heading">
|
|
394
285
|
<span class="method-name">change_font_italics</span><span
|
|
395
286
|
class="method-args">(italicized = false)</span>
|
|
396
|
-
|
|
397
287
|
<span class="method-click-advice">click to toggle source</span>
|
|
398
|
-
|
|
399
288
|
</div>
|
|
400
|
-
|
|
401
289
|
|
|
402
290
|
<div class="method-description">
|
|
403
|
-
|
|
404
291
|
<p>Changes font italics settings of cell</p>
|
|
405
|
-
|
|
406
|
-
|
|
407
292
|
|
|
408
|
-
|
|
409
293
|
<div class="method-source-code" id="change_font_italics-source">
|
|
410
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
294
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 197</span>
|
|
411
295
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_italics</span>(<span class="ruby-identifier">italicized</span> = <span class="ruby-keyword">false</span>)
|
|
412
296
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
413
297
|
|
|
@@ -416,35 +300,23 @@
|
|
|
416
300
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
417
301
|
<span class="ruby-keyword">end</span></pre>
|
|
418
302
|
</div>
|
|
419
|
-
|
|
420
303
|
</div>
|
|
421
304
|
|
|
422
|
-
|
|
423
305
|
|
|
424
|
-
|
|
425
306
|
</div>
|
|
426
307
|
|
|
427
|
-
|
|
428
308
|
<div id="method-i-change_font_name" class="method-detail ">
|
|
429
|
-
|
|
430
309
|
<div class="method-heading">
|
|
431
310
|
<span class="method-name">change_font_name</span><span
|
|
432
311
|
class="method-args">(new_font_name = 'Verdana')</span>
|
|
433
|
-
|
|
434
312
|
<span class="method-click-advice">click to toggle source</span>
|
|
435
|
-
|
|
436
313
|
</div>
|
|
437
|
-
|
|
438
314
|
|
|
439
315
|
<div class="method-description">
|
|
440
|
-
|
|
441
316
|
<p>Changes font name of cell</p>
|
|
442
|
-
|
|
443
|
-
|
|
444
317
|
|
|
445
|
-
|
|
446
318
|
<div class="method-source-code" id="change_font_name-source">
|
|
447
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
319
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 168</span>
|
|
448
320
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_name</span>(<span class="ruby-identifier">new_font_name</span> = <span class="ruby-string">'Verdana'</span>)
|
|
449
321
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
450
322
|
|
|
@@ -453,35 +325,23 @@
|
|
|
453
325
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
454
326
|
<span class="ruby-keyword">end</span></pre>
|
|
455
327
|
</div>
|
|
456
|
-
|
|
457
328
|
</div>
|
|
458
329
|
|
|
459
|
-
|
|
460
330
|
|
|
461
|
-
|
|
462
331
|
</div>
|
|
463
332
|
|
|
464
|
-
|
|
465
333
|
<div id="method-i-change_font_size" class="method-detail ">
|
|
466
|
-
|
|
467
334
|
<div class="method-heading">
|
|
468
335
|
<span class="method-name">change_font_size</span><span
|
|
469
336
|
class="method-args">(font_size = 10)</span>
|
|
470
|
-
|
|
471
337
|
<span class="method-click-advice">click to toggle source</span>
|
|
472
|
-
|
|
473
338
|
</div>
|
|
474
|
-
|
|
475
339
|
|
|
476
340
|
<div class="method-description">
|
|
477
|
-
|
|
478
341
|
<p>Changes font size of cell</p>
|
|
479
|
-
|
|
480
|
-
|
|
481
342
|
|
|
482
|
-
|
|
483
343
|
<div class="method-source-code" id="change_font_size-source">
|
|
484
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
344
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 177</span>
|
|
485
345
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_size</span>(<span class="ruby-identifier">font_size</span> = <span class="ruby-value">10</span>)
|
|
486
346
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
487
347
|
<span class="ruby-identifier">raise</span> <span class="ruby-string">'Argument must be a number'</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">font_size</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Integer</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">font_size</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Float</span>)
|
|
@@ -491,35 +351,23 @@
|
|
|
491
351
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
492
352
|
<span class="ruby-keyword">end</span></pre>
|
|
493
353
|
</div>
|
|
494
|
-
|
|
495
354
|
</div>
|
|
496
355
|
|
|
497
|
-
|
|
498
356
|
|
|
499
|
-
|
|
500
357
|
</div>
|
|
501
358
|
|
|
502
|
-
|
|
503
359
|
<div id="method-i-change_font_strikethrough" class="method-detail ">
|
|
504
|
-
|
|
505
360
|
<div class="method-heading">
|
|
506
361
|
<span class="method-name">change_font_strikethrough</span><span
|
|
507
362
|
class="method-args">(struckthrough = false)</span>
|
|
508
|
-
|
|
509
363
|
<span class="method-click-advice">click to toggle source</span>
|
|
510
|
-
|
|
511
364
|
</div>
|
|
512
|
-
|
|
513
365
|
|
|
514
366
|
<div class="method-description">
|
|
515
367
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
368
|
|
|
520
|
-
|
|
521
369
|
<div class="method-source-code" id="change_font_strikethrough-source">
|
|
522
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
370
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 223</span>
|
|
523
371
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_strikethrough</span>(<span class="ruby-identifier">struckthrough</span> = <span class="ruby-keyword">false</span>)
|
|
524
372
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
525
373
|
|
|
@@ -528,35 +376,23 @@
|
|
|
528
376
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
529
377
|
<span class="ruby-keyword">end</span></pre>
|
|
530
378
|
</div>
|
|
531
|
-
|
|
532
379
|
</div>
|
|
533
380
|
|
|
534
|
-
|
|
535
381
|
|
|
536
|
-
|
|
537
382
|
</div>
|
|
538
383
|
|
|
539
|
-
|
|
540
384
|
<div id="method-i-change_font_underline" class="method-detail ">
|
|
541
|
-
|
|
542
385
|
<div class="method-heading">
|
|
543
386
|
<span class="method-name">change_font_underline</span><span
|
|
544
387
|
class="method-args">(underlined = false)</span>
|
|
545
|
-
|
|
546
388
|
<span class="method-click-advice">click to toggle source</span>
|
|
547
|
-
|
|
548
389
|
</div>
|
|
549
|
-
|
|
550
390
|
|
|
551
391
|
<div class="method-description">
|
|
552
|
-
|
|
553
392
|
<p>Changes font underline settings of cell</p>
|
|
554
|
-
|
|
555
|
-
|
|
556
393
|
|
|
557
|
-
|
|
558
394
|
<div class="method-source-code" id="change_font_underline-source">
|
|
559
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
395
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 215</span>
|
|
560
396
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_font_underline</span>(<span class="ruby-identifier">underlined</span> = <span class="ruby-keyword">false</span>)
|
|
561
397
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
562
398
|
|
|
@@ -565,341 +401,221 @@
|
|
|
565
401
|
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
566
402
|
<span class="ruby-keyword">end</span></pre>
|
|
567
403
|
</div>
|
|
568
|
-
|
|
569
404
|
</div>
|
|
570
405
|
|
|
571
|
-
|
|
572
406
|
|
|
573
|
-
|
|
574
407
|
</div>
|
|
575
408
|
|
|
576
|
-
|
|
577
409
|
<div id="method-i-change_horizontal_alignment" class="method-detail ">
|
|
578
|
-
|
|
579
410
|
<div class="method-heading">
|
|
580
411
|
<span class="method-name">change_horizontal_alignment</span><span
|
|
581
412
|
class="method-args">(alignment = 'center')</span>
|
|
582
|
-
|
|
583
413
|
<span class="method-click-advice">click to toggle source</span>
|
|
584
|
-
|
|
585
414
|
</div>
|
|
586
|
-
|
|
587
415
|
|
|
588
416
|
<div class="method-description">
|
|
589
417
|
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
418
|
|
|
594
|
-
|
|
595
419
|
<div class="method-source-code" id="change_horizontal_alignment-source">
|
|
596
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
420
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 42</span>
|
|
597
421
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_horizontal_alignment</span>(<span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
|
598
422
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
599
423
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_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> }
|
|
600
424
|
<span class="ruby-keyword">end</span></pre>
|
|
601
425
|
</div>
|
|
602
|
-
|
|
603
426
|
</div>
|
|
604
427
|
|
|
605
|
-
|
|
606
428
|
|
|
607
|
-
|
|
608
429
|
</div>
|
|
609
430
|
|
|
610
|
-
|
|
611
431
|
<div id="method-i-change_text_indent" class="method-detail ">
|
|
612
|
-
|
|
613
432
|
<div class="method-heading">
|
|
614
433
|
<span class="method-name">change_text_indent</span><span
|
|
615
434
|
class="method-args">(indent)</span>
|
|
616
|
-
|
|
617
435
|
<span class="method-click-advice">click to toggle source</span>
|
|
618
|
-
|
|
619
436
|
</div>
|
|
620
|
-
|
|
621
437
|
|
|
622
438
|
<div class="method-description">
|
|
623
439
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
440
|
|
|
628
|
-
|
|
629
441
|
<div class="method-source-code" id="change_text_indent-source">
|
|
630
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
442
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 62</span>
|
|
631
443
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_indent</span>(<span class="ruby-identifier">indent</span>)
|
|
632
444
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
633
445
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_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">indent</span> = <span class="ruby-identifier">indent</span> }
|
|
634
446
|
<span class="ruby-keyword">end</span></pre>
|
|
635
447
|
</div>
|
|
636
|
-
|
|
637
448
|
</div>
|
|
638
449
|
|
|
639
|
-
|
|
640
450
|
|
|
641
|
-
|
|
642
451
|
</div>
|
|
643
452
|
|
|
644
|
-
|
|
645
453
|
<div id="method-i-change_text_rotation" class="method-detail ">
|
|
646
|
-
|
|
647
454
|
<div class="method-heading">
|
|
648
455
|
<span class="method-name">change_text_rotation</span><span
|
|
649
456
|
class="method-args">(rot)</span>
|
|
650
|
-
|
|
651
457
|
<span class="method-click-advice">click to toggle source</span>
|
|
652
|
-
|
|
653
458
|
</div>
|
|
654
|
-
|
|
655
459
|
|
|
656
460
|
<div class="method-description">
|
|
657
461
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
462
|
|
|
662
|
-
|
|
663
463
|
<div class="method-source-code" id="change_text_rotation-source">
|
|
664
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
464
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 57</span>
|
|
665
465
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_rotation</span>(<span class="ruby-identifier">rot</span>)
|
|
666
466
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
667
467
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_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">text_rotation</span> = <span class="ruby-identifier">rot</span> }
|
|
668
468
|
<span class="ruby-keyword">end</span></pre>
|
|
669
469
|
</div>
|
|
670
|
-
|
|
671
470
|
</div>
|
|
672
471
|
|
|
673
|
-
|
|
674
472
|
|
|
675
|
-
|
|
676
473
|
</div>
|
|
677
474
|
|
|
678
|
-
|
|
679
475
|
<div id="method-i-change_text_wrap" class="method-detail ">
|
|
680
|
-
|
|
681
476
|
<div class="method-heading">
|
|
682
477
|
<span class="method-name">change_text_wrap</span><span
|
|
683
478
|
class="method-args">(wrap = false)</span>
|
|
684
|
-
|
|
685
479
|
<span class="method-click-advice">click to toggle source</span>
|
|
686
|
-
|
|
687
480
|
</div>
|
|
688
|
-
|
|
689
481
|
|
|
690
482
|
<div class="method-description">
|
|
691
483
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
484
|
|
|
696
|
-
|
|
697
485
|
<div class="method-source-code" id="change_text_wrap-source">
|
|
698
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
486
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 52</span>
|
|
699
487
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_wrap</span>(<span class="ruby-identifier">wrap</span> = <span class="ruby-keyword">false</span>)
|
|
700
488
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
701
489
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_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">wrap_text</span> = <span class="ruby-identifier">wrap</span> }
|
|
702
490
|
<span class="ruby-keyword">end</span></pre>
|
|
703
491
|
</div>
|
|
704
|
-
|
|
705
492
|
</div>
|
|
706
493
|
|
|
707
|
-
|
|
708
494
|
|
|
709
|
-
|
|
710
495
|
</div>
|
|
711
496
|
|
|
712
|
-
|
|
713
497
|
<div id="method-i-change_vertical_alignment" class="method-detail ">
|
|
714
|
-
|
|
715
498
|
<div class="method-heading">
|
|
716
499
|
<span class="method-name">change_vertical_alignment</span><span
|
|
717
500
|
class="method-args">(alignment = 'center')</span>
|
|
718
|
-
|
|
719
501
|
<span class="method-click-advice">click to toggle source</span>
|
|
720
|
-
|
|
721
502
|
</div>
|
|
722
|
-
|
|
723
503
|
|
|
724
504
|
<div class="method-description">
|
|
725
505
|
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
506
|
|
|
730
|
-
|
|
731
507
|
<div class="method-source-code" id="change_vertical_alignment-source">
|
|
732
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
508
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 47</span>
|
|
733
509
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_vertical_alignment</span>(<span class="ruby-identifier">alignment</span> = <span class="ruby-string">'center'</span>)
|
|
734
510
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
735
511
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">modify_alignment</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_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> }
|
|
736
512
|
<span class="ruby-keyword">end</span></pre>
|
|
737
513
|
</div>
|
|
738
|
-
|
|
739
514
|
</div>
|
|
740
515
|
|
|
741
|
-
|
|
742
516
|
|
|
743
|
-
|
|
744
517
|
</div>
|
|
745
518
|
|
|
746
|
-
|
|
747
519
|
<div id="method-i-fill_color" class="method-detail ">
|
|
748
|
-
|
|
749
520
|
<div class="method-heading">
|
|
750
521
|
<span class="method-name">fill_color</span><span
|
|
751
522
|
class="method-args">()</span>
|
|
752
|
-
|
|
753
523
|
<span class="method-click-advice">click to toggle source</span>
|
|
754
|
-
|
|
755
524
|
</div>
|
|
756
|
-
|
|
757
525
|
|
|
758
526
|
<div class="method-description">
|
|
759
527
|
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
528
|
|
|
764
|
-
|
|
765
529
|
<div class="method-source-code" id="fill_color-source">
|
|
766
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
530
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 113</span>
|
|
767
531
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fill_color</span>()
|
|
768
532
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
769
533
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">get_cell_xf</span>)
|
|
770
534
|
<span class="ruby-keyword">end</span></pre>
|
|
771
535
|
</div>
|
|
772
|
-
|
|
773
536
|
</div>
|
|
774
537
|
|
|
775
|
-
|
|
776
538
|
|
|
777
|
-
|
|
778
539
|
</div>
|
|
779
540
|
|
|
780
|
-
|
|
781
541
|
<div id="method-i-font_color" class="method-detail ">
|
|
782
|
-
|
|
783
542
|
<div class="method-heading">
|
|
784
543
|
<span class="method-name">font_color</span><span
|
|
785
544
|
class="method-args">()</span>
|
|
786
|
-
|
|
787
545
|
<span class="method-click-advice">click to toggle source</span>
|
|
788
|
-
|
|
789
546
|
</div>
|
|
790
|
-
|
|
791
547
|
|
|
792
548
|
<div class="method-description">
|
|
793
549
|
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
550
|
|
|
798
|
-
|
|
799
551
|
<div class="method-source-code" id="font_color-source">
|
|
800
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
552
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 108</span>
|
|
801
553
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_color</span>()
|
|
802
554
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
803
555
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_rgb_color</span> <span class="ruby-operator">||</span> <span class="ruby-string">'000000'</span>
|
|
804
556
|
<span class="ruby-keyword">end</span></pre>
|
|
805
557
|
</div>
|
|
806
|
-
|
|
807
558
|
</div>
|
|
808
559
|
|
|
809
|
-
|
|
810
560
|
|
|
811
|
-
|
|
812
561
|
</div>
|
|
813
562
|
|
|
814
|
-
|
|
815
563
|
<div id="method-i-font_name" class="method-detail ">
|
|
816
|
-
|
|
817
564
|
<div class="method-heading">
|
|
818
565
|
<span class="method-name">font_name</span><span
|
|
819
566
|
class="method-args">()</span>
|
|
820
|
-
|
|
821
567
|
<span class="method-click-advice">click to toggle source</span>
|
|
822
|
-
|
|
823
568
|
</div>
|
|
824
|
-
|
|
825
569
|
|
|
826
570
|
<div class="method-description">
|
|
827
571
|
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
572
|
|
|
832
|
-
|
|
833
573
|
<div class="method-source-code" id="font_name-source">
|
|
834
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
574
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 98</span>
|
|
835
575
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_name</span>()
|
|
836
576
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
837
577
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_name</span>
|
|
838
578
|
<span class="ruby-keyword">end</span></pre>
|
|
839
579
|
</div>
|
|
840
|
-
|
|
841
580
|
</div>
|
|
842
581
|
|
|
843
|
-
|
|
844
582
|
|
|
845
|
-
|
|
846
583
|
</div>
|
|
847
584
|
|
|
848
|
-
|
|
849
585
|
<div id="method-i-font_size" class="method-detail ">
|
|
850
|
-
|
|
851
586
|
<div class="method-heading">
|
|
852
587
|
<span class="method-name">font_size</span><span
|
|
853
588
|
class="method-args">()</span>
|
|
854
|
-
|
|
855
589
|
<span class="method-click-advice">click to toggle source</span>
|
|
856
|
-
|
|
857
590
|
</div>
|
|
858
|
-
|
|
859
591
|
|
|
860
592
|
<div class="method-description">
|
|
861
593
|
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
594
|
|
|
866
|
-
|
|
867
595
|
<div class="method-source-code" id="font_size-source">
|
|
868
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
596
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 103</span>
|
|
869
597
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_size</span>()
|
|
870
598
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
871
599
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_size</span>
|
|
872
600
|
<span class="ruby-keyword">end</span></pre>
|
|
873
601
|
</div>
|
|
874
|
-
|
|
875
602
|
</div>
|
|
876
603
|
|
|
877
|
-
|
|
878
604
|
|
|
879
|
-
|
|
880
605
|
</div>
|
|
881
606
|
|
|
882
|
-
|
|
883
607
|
<div id="method-i-font_switch" class="method-detail ">
|
|
884
|
-
|
|
885
608
|
<div class="method-heading">
|
|
886
609
|
<span class="method-name">font_switch</span><span
|
|
887
610
|
class="method-args">(change_type, arg)</span>
|
|
888
|
-
|
|
889
611
|
<span class="method-click-advice">click to toggle source</span>
|
|
890
|
-
|
|
891
612
|
</div>
|
|
892
|
-
|
|
893
613
|
|
|
894
614
|
<div class="method-description">
|
|
895
|
-
|
|
896
615
|
<p>Performs correct modification based on what type of change_type is specified</p>
|
|
897
|
-
|
|
898
|
-
|
|
899
616
|
|
|
900
|
-
|
|
901
617
|
<div class="method-source-code" id="font_switch-source">
|
|
902
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
618
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 239</span>
|
|
903
619
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_switch</span>(<span class="ruby-identifier">change_type</span>, <span class="ruby-identifier">arg</span>)
|
|
904
620
|
<span class="ruby-keyword">case</span> <span class="ruby-identifier">change_type</span>
|
|
905
621
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">NAME</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">change_font_name</span>(<span class="ruby-identifier">arg</span>)
|
|
@@ -913,103 +629,67 @@
|
|
|
913
629
|
<span class="ruby-keyword">end</span>
|
|
914
630
|
<span class="ruby-keyword">end</span></pre>
|
|
915
631
|
</div>
|
|
916
|
-
|
|
917
632
|
</div>
|
|
918
633
|
|
|
919
|
-
|
|
920
634
|
|
|
921
|
-
|
|
922
635
|
</div>
|
|
923
636
|
|
|
924
|
-
|
|
925
637
|
<div id="method-i-get_border" class="method-detail ">
|
|
926
|
-
|
|
927
638
|
<div class="method-heading">
|
|
928
639
|
<span class="method-name">get_border</span><span
|
|
929
640
|
class="method-args">(direction)</span>
|
|
930
|
-
|
|
931
641
|
<span class="method-click-advice">click to toggle source</span>
|
|
932
|
-
|
|
933
642
|
</div>
|
|
934
|
-
|
|
935
643
|
|
|
936
644
|
<div class="method-description">
|
|
937
645
|
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
646
|
|
|
942
|
-
|
|
943
647
|
<div class="method-source-code" id="get_border-source">
|
|
944
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
648
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 32</span>
|
|
945
649
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_border</span>(<span class="ruby-identifier">direction</span>)
|
|
946
650
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
947
651
|
<span class="ruby-identifier">get_cell_border</span>.<span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">direction</span>)
|
|
948
652
|
<span class="ruby-keyword">end</span></pre>
|
|
949
653
|
</div>
|
|
950
|
-
|
|
951
654
|
</div>
|
|
952
655
|
|
|
953
|
-
|
|
954
656
|
|
|
955
|
-
|
|
956
657
|
</div>
|
|
957
658
|
|
|
958
|
-
|
|
959
659
|
<div id="method-i-get_border_color" class="method-detail ">
|
|
960
|
-
|
|
961
660
|
<div class="method-heading">
|
|
962
661
|
<span class="method-name">get_border_color</span><span
|
|
963
662
|
class="method-args">(direction)</span>
|
|
964
|
-
|
|
965
663
|
<span class="method-click-advice">click to toggle source</span>
|
|
966
|
-
|
|
967
664
|
</div>
|
|
968
|
-
|
|
969
665
|
|
|
970
666
|
<div class="method-description">
|
|
971
667
|
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
668
|
|
|
976
|
-
|
|
977
669
|
<div class="method-source-code" id="get_border_color-source">
|
|
978
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
670
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 37</span>
|
|
979
671
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_border_color</span>(<span class="ruby-identifier">direction</span>)
|
|
980
672
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
981
673
|
<span class="ruby-identifier">get_cell_border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">direction</span>)
|
|
982
674
|
<span class="ruby-keyword">end</span></pre>
|
|
983
675
|
</div>
|
|
984
|
-
|
|
985
676
|
</div>
|
|
986
677
|
|
|
987
|
-
|
|
988
678
|
|
|
989
|
-
|
|
990
679
|
</div>
|
|
991
680
|
|
|
992
|
-
|
|
993
681
|
<div id="method-i-horizontal_alignment" class="method-detail ">
|
|
994
|
-
|
|
995
682
|
<div class="method-heading">
|
|
996
683
|
<span class="method-name">horizontal_alignment</span><span
|
|
997
684
|
class="method-args">()</span>
|
|
998
|
-
|
|
999
685
|
<span class="method-click-advice">click to toggle source</span>
|
|
1000
|
-
|
|
1001
686
|
</div>
|
|
1002
|
-
|
|
1003
687
|
|
|
1004
688
|
<div class="method-description">
|
|
1005
689
|
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
690
|
|
|
1010
|
-
|
|
1011
691
|
<div class="method-source-code" id="horizontal_alignment-source">
|
|
1012
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
692
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 118</span>
|
|
1013
693
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">horizontal_alignment</span>()
|
|
1014
694
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
1015
695
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
@@ -1017,171 +697,138 @@
|
|
|
1017
697
|
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">horizontal</span>
|
|
1018
698
|
<span class="ruby-keyword">end</span></pre>
|
|
1019
699
|
</div>
|
|
1020
|
-
|
|
1021
700
|
</div>
|
|
1022
701
|
|
|
1023
|
-
|
|
1024
702
|
|
|
1025
|
-
|
|
1026
703
|
</div>
|
|
1027
704
|
|
|
1028
|
-
|
|
1029
705
|
<div id="method-i-is_bolded" class="method-detail ">
|
|
1030
|
-
|
|
1031
706
|
<div class="method-heading">
|
|
1032
707
|
<span class="method-name">is_bolded</span><span
|
|
1033
708
|
class="method-args">()</span>
|
|
1034
|
-
|
|
1035
709
|
<span class="method-click-advice">click to toggle source</span>
|
|
1036
|
-
|
|
1037
710
|
</div>
|
|
1038
|
-
|
|
1039
711
|
|
|
1040
712
|
<div class="method-description">
|
|
1041
713
|
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
714
|
|
|
1046
|
-
|
|
1047
715
|
<div class="method-source-code" id="is_bolded-source">
|
|
1048
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
716
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 83</span>
|
|
1049
717
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_bolded</span>()
|
|
1050
718
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
1051
719
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_bold</span>
|
|
1052
720
|
<span class="ruby-keyword">end</span></pre>
|
|
1053
721
|
</div>
|
|
1054
|
-
|
|
1055
722
|
</div>
|
|
1056
723
|
|
|
1057
|
-
|
|
1058
724
|
|
|
1059
|
-
|
|
1060
725
|
</div>
|
|
1061
726
|
|
|
1062
|
-
|
|
1063
727
|
<div id="method-i-is_italicized" class="method-detail ">
|
|
1064
|
-
|
|
1065
728
|
<div class="method-heading">
|
|
1066
729
|
<span class="method-name">is_italicized</span><span
|
|
1067
730
|
class="method-args">()</span>
|
|
1068
|
-
|
|
1069
731
|
<span class="method-click-advice">click to toggle source</span>
|
|
1070
|
-
|
|
1071
732
|
</div>
|
|
1072
|
-
|
|
1073
733
|
|
|
1074
734
|
<div class="method-description">
|
|
1075
735
|
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
736
|
|
|
1080
|
-
|
|
1081
737
|
<div class="method-source-code" id="is_italicized-source">
|
|
1082
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
738
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 78</span>
|
|
1083
739
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_italicized</span>()
|
|
1084
740
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
1085
741
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_italic</span>
|
|
1086
742
|
<span class="ruby-keyword">end</span></pre>
|
|
1087
743
|
</div>
|
|
1088
|
-
|
|
1089
744
|
</div>
|
|
1090
745
|
|
|
1091
|
-
|
|
1092
746
|
|
|
1093
|
-
|
|
1094
747
|
</div>
|
|
1095
748
|
|
|
1096
|
-
|
|
1097
749
|
<div id="method-i-is_struckthrough" class="method-detail ">
|
|
1098
|
-
|
|
1099
750
|
<div class="method-heading">
|
|
1100
751
|
<span class="method-name">is_struckthrough</span><span
|
|
1101
752
|
class="method-args">()</span>
|
|
1102
|
-
|
|
1103
753
|
<span class="method-click-advice">click to toggle source</span>
|
|
1104
|
-
|
|
1105
754
|
</div>
|
|
1106
|
-
|
|
1107
755
|
|
|
1108
756
|
<div class="method-description">
|
|
1109
757
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
758
|
|
|
1114
|
-
|
|
1115
759
|
<div class="method-source-code" id="is_struckthrough-source">
|
|
1116
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
760
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 93</span>
|
|
1117
761
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_struckthrough</span>()
|
|
1118
762
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
1119
763
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_strikethrough</span>
|
|
1120
764
|
<span class="ruby-keyword">end</span></pre>
|
|
1121
765
|
</div>
|
|
1122
|
-
|
|
1123
766
|
</div>
|
|
1124
767
|
|
|
1125
|
-
|
|
1126
768
|
|
|
1127
|
-
|
|
1128
769
|
</div>
|
|
1129
770
|
|
|
1130
|
-
|
|
1131
771
|
<div id="method-i-is_underlined" class="method-detail ">
|
|
1132
|
-
|
|
1133
772
|
<div class="method-heading">
|
|
1134
773
|
<span class="method-name">is_underlined</span><span
|
|
1135
774
|
class="method-args">()</span>
|
|
1136
|
-
|
|
1137
775
|
<span class="method-click-advice">click to toggle source</span>
|
|
1138
|
-
|
|
1139
776
|
</div>
|
|
1140
|
-
|
|
1141
777
|
|
|
1142
778
|
<div class="method-description">
|
|
1143
779
|
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
780
|
|
|
1148
|
-
|
|
1149
781
|
<div class="method-source-code" id="is_underlined-source">
|
|
1150
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
782
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 88</span>
|
|
1151
783
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_underlined</span>()
|
|
1152
784
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
1153
785
|
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_underlined</span>
|
|
1154
786
|
<span class="ruby-keyword">end</span></pre>
|
|
1155
787
|
</div>
|
|
788
|
+
</div>
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
</div>
|
|
792
|
+
|
|
793
|
+
<div id="method-i-remove_formula" class="method-detail ">
|
|
794
|
+
<div class="method-heading">
|
|
795
|
+
<span class="method-name">remove_formula</span><span
|
|
796
|
+
class="method-args">()</span>
|
|
797
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
798
|
+
</div>
|
|
799
|
+
|
|
800
|
+
<div class="method-description">
|
|
1156
801
|
|
|
802
|
+
|
|
803
|
+
<div class="method-source-code" id="remove_formula-source">
|
|
804
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 22</span>
|
|
805
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">remove_formula</span>
|
|
806
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">formula</span> = <span class="ruby-keyword">nil</span>
|
|
807
|
+
|
|
808
|
+
<span class="ruby-identifier">calculation_chain</span> = <span class="ruby-identifier">workbook</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">calculation_chain</span>
|
|
809
|
+
<span class="ruby-identifier">calculation_cells</span> = <span class="ruby-identifier">calculation_chain</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">calculation_chain</span>.<span class="ruby-identifier">cells</span>
|
|
810
|
+
<span class="ruby-identifier">calculation_cells</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">calculation_cells</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
|
|
811
|
+
<span class="ruby-identifier">c</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">col_range</span>.<span class="ruby-identifier">c</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">column</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">row_range</span>.<span class="ruby-identifier">begin</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">row</span>
|
|
812
|
+
}
|
|
813
|
+
<span class="ruby-keyword">end</span></pre>
|
|
814
|
+
</div>
|
|
1157
815
|
</div>
|
|
1158
816
|
|
|
1159
|
-
|
|
1160
817
|
|
|
1161
|
-
|
|
1162
818
|
</div>
|
|
1163
819
|
|
|
1164
|
-
|
|
1165
820
|
<div id="method-i-set_number_format" class="method-detail ">
|
|
1166
|
-
|
|
1167
821
|
<div class="method-heading">
|
|
1168
822
|
<span class="method-name">set_number_format</span><span
|
|
1169
823
|
class="method-args">(format_code)</span>
|
|
1170
|
-
|
|
1171
824
|
<span class="method-click-advice">click to toggle source</span>
|
|
1172
|
-
|
|
1173
825
|
</div>
|
|
1174
|
-
|
|
1175
826
|
|
|
1176
827
|
<div class="method-description">
|
|
1177
828
|
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
829
|
|
|
1182
|
-
|
|
1183
830
|
<div class="method-source-code" id="set_number_format-source">
|
|
1184
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
831
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 153</span>
|
|
1185
832
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_number_format</span>(<span class="ruby-identifier">format_code</span>)
|
|
1186
833
|
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">dup</span>
|
|
1187
834
|
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">num_fmt_id</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">register_number_format</span>(<span class="ruby-identifier">format_code</span>)
|
|
@@ -1189,35 +836,23 @@
|
|
|
1189
836
|
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">style_index</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>)
|
|
1190
837
|
<span class="ruby-keyword">end</span></pre>
|
|
1191
838
|
</div>
|
|
1192
|
-
|
|
1193
839
|
</div>
|
|
1194
840
|
|
|
1195
|
-
|
|
1196
841
|
|
|
1197
|
-
|
|
1198
842
|
</div>
|
|
1199
843
|
|
|
1200
|
-
|
|
1201
844
|
<div id="method-i-text_indent" class="method-detail ">
|
|
1202
|
-
|
|
1203
845
|
<div class="method-heading">
|
|
1204
846
|
<span class="method-name">text_indent</span><span
|
|
1205
847
|
class="method-args">()</span>
|
|
1206
|
-
|
|
1207
848
|
<span class="method-click-advice">click to toggle source</span>
|
|
1208
|
-
|
|
1209
849
|
</div>
|
|
1210
|
-
|
|
1211
850
|
|
|
1212
851
|
<div class="method-description">
|
|
1213
852
|
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
853
|
|
|
1218
|
-
|
|
1219
854
|
<div class="method-source-code" id="text_indent-source">
|
|
1220
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
855
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 146</span>
|
|
1221
856
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_indent</span>()
|
|
1222
857
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
1223
858
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
@@ -1225,35 +860,23 @@
|
|
|
1225
860
|
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">indent</span>
|
|
1226
861
|
<span class="ruby-keyword">end</span></pre>
|
|
1227
862
|
</div>
|
|
1228
|
-
|
|
1229
863
|
</div>
|
|
1230
864
|
|
|
1231
|
-
|
|
1232
865
|
|
|
1233
|
-
|
|
1234
866
|
</div>
|
|
1235
867
|
|
|
1236
|
-
|
|
1237
868
|
<div id="method-i-text_rotation" class="method-detail ">
|
|
1238
|
-
|
|
1239
869
|
<div class="method-heading">
|
|
1240
870
|
<span class="method-name">text_rotation</span><span
|
|
1241
871
|
class="method-args">()</span>
|
|
1242
|
-
|
|
1243
872
|
<span class="method-click-advice">click to toggle source</span>
|
|
1244
|
-
|
|
1245
873
|
</div>
|
|
1246
|
-
|
|
1247
874
|
|
|
1248
875
|
<div class="method-description">
|
|
1249
876
|
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
877
|
|
|
1254
|
-
|
|
1255
878
|
<div class="method-source-code" id="text_rotation-source">
|
|
1256
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
879
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 139</span>
|
|
1257
880
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_rotation</span>
|
|
1258
881
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
1259
882
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
@@ -1261,35 +884,23 @@
|
|
|
1261
884
|
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">text_rotation</span>
|
|
1262
885
|
<span class="ruby-keyword">end</span></pre>
|
|
1263
886
|
</div>
|
|
1264
|
-
|
|
1265
887
|
</div>
|
|
1266
888
|
|
|
1267
|
-
|
|
1268
889
|
|
|
1269
|
-
|
|
1270
890
|
</div>
|
|
1271
891
|
|
|
1272
|
-
|
|
1273
892
|
<div id="method-i-text_wrap" class="method-detail ">
|
|
1274
|
-
|
|
1275
893
|
<div class="method-heading">
|
|
1276
894
|
<span class="method-name">text_wrap</span><span
|
|
1277
895
|
class="method-args">()</span>
|
|
1278
|
-
|
|
1279
896
|
<span class="method-click-advice">click to toggle source</span>
|
|
1280
|
-
|
|
1281
897
|
</div>
|
|
1282
|
-
|
|
1283
898
|
|
|
1284
899
|
<div class="method-description">
|
|
1285
900
|
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
901
|
|
|
1290
|
-
|
|
1291
902
|
<div class="method-source-code" id="text_wrap-source">
|
|
1292
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
903
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 132</span>
|
|
1293
904
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_wrap</span>()
|
|
1294
905
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
1295
906
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
@@ -1297,35 +908,23 @@
|
|
|
1297
908
|
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">wrap_text</span>
|
|
1298
909
|
<span class="ruby-keyword">end</span></pre>
|
|
1299
910
|
</div>
|
|
1300
|
-
|
|
1301
911
|
</div>
|
|
1302
912
|
|
|
1303
|
-
|
|
1304
913
|
|
|
1305
|
-
|
|
1306
914
|
</div>
|
|
1307
915
|
|
|
1308
|
-
|
|
1309
916
|
<div id="method-i-vertical_alignment" class="method-detail ">
|
|
1310
|
-
|
|
1311
917
|
<div class="method-heading">
|
|
1312
918
|
<span class="method-name">vertical_alignment</span><span
|
|
1313
919
|
class="method-args">()</span>
|
|
1314
|
-
|
|
1315
920
|
<span class="method-click-advice">click to toggle source</span>
|
|
1316
|
-
|
|
1317
921
|
</div>
|
|
1318
|
-
|
|
1319
922
|
|
|
1320
923
|
<div class="method-description">
|
|
1321
924
|
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
925
|
|
|
1326
|
-
|
|
1327
926
|
<div class="method-source-code" id="vertical_alignment-source">
|
|
1328
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line
|
|
927
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 125</span>
|
|
1329
928
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">vertical_alignment</span>()
|
|
1330
929
|
<span class="ruby-identifier">validate_worksheet</span>
|
|
1331
930
|
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
@@ -1333,24 +932,20 @@
|
|
|
1333
932
|
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">vertical</span>
|
|
1334
933
|
<span class="ruby-keyword">end</span></pre>
|
|
1335
934
|
</div>
|
|
1336
|
-
|
|
1337
935
|
</div>
|
|
1338
936
|
|
|
1339
|
-
|
|
1340
937
|
|
|
1341
|
-
|
|
1342
938
|
</div>
|
|
1343
939
|
|
|
1344
|
-
|
|
1345
940
|
</section>
|
|
1346
|
-
|
|
941
|
+
|
|
1347
942
|
</section>
|
|
1348
943
|
</main>
|
|
1349
944
|
|
|
1350
945
|
|
|
1351
946
|
<footer id="validator-badges" role="contentinfo">
|
|
1352
947
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
|
1353
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.
|
|
948
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
|
1354
949
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
1355
950
|
</footer>
|
|
1356
951
|
|