rubyXL 3.4.39 → 3.4.40
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/Rakefile +107 -14
- data/VERSION +1 -1
- data/bin/console +10 -0
- data/bin/setup +3 -0
- data/lib/rubyXL/convenience_methods/cell.rb +6 -3
- data/lib/rubyXL/version.rb +3 -0
- data/lib/rubyXL.rb +1 -0
- data/rubyXL.gemspec +10 -482
- metadata +27 -430
- data/.circleci/config.yml +0 -71
- data/.codeclimate.yml +0 -3
- data/.rubocop.yml +0 -124
- data/CHANGELOG.md +0 -12
- data/Gemfile +0 -23
- data/rdoc/README_rdoc.html +0 -871
- data/rdoc/RubyXL/AExtension.html +0 -703
- data/rdoc/RubyXL/AExtensionStorageArea.html +0 -543
- data/rdoc/RubyXL/ActiveX.html +0 -654
- data/rdoc/RubyXL/ActiveXBinary.html +0 -560
- data/rdoc/RubyXL/AdjustHandleList.html +0 -539
- data/rdoc/RubyXL/Alignment.html +0 -539
- data/rdoc/RubyXL/AlternateContent.html +0 -543
- data/rdoc/RubyXL/AlternateUrls.html +0 -539
- data/rdoc/RubyXL/Authors.html +0 -539
- data/rdoc/RubyXL/AutoFilter.html +0 -539
- data/rdoc/RubyXL/AutoFilterColumn.html +0 -539
- data/rdoc/RubyXL/BinaryImageFile.html +0 -568
- data/rdoc/RubyXL/BodyProperties.html +0 -539
- data/rdoc/RubyXL/BooleanNode.html +0 -543
- data/rdoc/RubyXL/BooleanValue.html +0 -543
- data/rdoc/RubyXL/Border.html +0 -759
- data/rdoc/RubyXL/BorderEdge.html +0 -656
- data/rdoc/RubyXL/Borders.html +0 -608
- data/rdoc/RubyXL/Break.html +0 -539
- data/rdoc/RubyXL/BreakList.html +0 -539
- data/rdoc/RubyXL/CT_AdjPoint2D.html +0 -539
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +0 -539
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +0 -539
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +0 -539
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +0 -539
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +0 -539
- data/rdoc/RubyXL/CT_Backdrop.html +0 -539
- data/rdoc/RubyXL/CT_Bevel.html +0 -539
- data/rdoc/RubyXL/CT_BiLevelEffect.html +0 -539
- data/rdoc/RubyXL/CT_BlendEffect.html +0 -539
- data/rdoc/RubyXL/CT_Blip.html +0 -539
- data/rdoc/RubyXL/CT_BlipFillProperties.html +0 -539
- data/rdoc/RubyXL/CT_BlurEffect.html +0 -539
- data/rdoc/RubyXL/CT_Camera.html +0 -539
- data/rdoc/RubyXL/CT_Color.html +0 -539
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +0 -539
- data/rdoc/RubyXL/CT_ColorMapping.html +0 -539
- data/rdoc/RubyXL/CT_ColorScheme.html +0 -539
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +0 -539
- data/rdoc/RubyXL/CT_ConnectionSite.html +0 -539
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +0 -539
- data/rdoc/RubyXL/CT_DashStop.html +0 -539
- data/rdoc/RubyXL/CT_DashStopList.html +0 -539
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +0 -539
- data/rdoc/RubyXL/CT_DuotoneEffect.html +0 -539
- data/rdoc/RubyXL/CT_EffectContainer.html +0 -539
- data/rdoc/RubyXL/CT_EffectList.html +0 -539
- data/rdoc/RubyXL/CT_EffectReference.html +0 -539
- data/rdoc/RubyXL/CT_EffectStyleItem.html +0 -539
- data/rdoc/RubyXL/CT_EffectStyleList.html +0 -539
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +0 -539
- data/rdoc/RubyXL/CT_FillEffect.html +0 -539
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +0 -539
- data/rdoc/RubyXL/CT_FillStyleList.html +0 -539
- data/rdoc/RubyXL/CT_FlatText.html +0 -539
- data/rdoc/RubyXL/CT_FontCollection.html +0 -539
- data/rdoc/RubyXL/CT_FontReference.html +0 -539
- data/rdoc/RubyXL/CT_GeomGuideList.html +0 -539
- data/rdoc/RubyXL/CT_GlowEffect.html +0 -539
- data/rdoc/RubyXL/CT_GradientFillProperties.html +0 -539
- data/rdoc/RubyXL/CT_GradientStop.html +0 -539
- data/rdoc/RubyXL/CT_GradientStopList.html +0 -539
- data/rdoc/RubyXL/CT_HSLEffect.html +0 -539
- data/rdoc/RubyXL/CT_HslColor.html +0 -539
- data/rdoc/RubyXL/CT_Hyperlink.html +0 -539
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +0 -539
- data/rdoc/RubyXL/CT_LightRig.html +0 -539
- data/rdoc/RubyXL/CT_LineEndProperties.html +0 -539
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +0 -539
- data/rdoc/RubyXL/CT_LineProperties.html +0 -539
- data/rdoc/RubyXL/CT_LineStyleList.html +0 -539
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +0 -539
- data/rdoc/RubyXL/CT_LuminanceEffect.html +0 -539
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +0 -539
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +0 -539
- data/rdoc/RubyXL/CT_Path2D.html +0 -539
- data/rdoc/RubyXL/CT_Path2DArcTo.html +0 -539
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +0 -539
- data/rdoc/RubyXL/CT_Path2DList.html +0 -539
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +0 -539
- data/rdoc/RubyXL/CT_Path2DTo.html +0 -539
- data/rdoc/RubyXL/CT_PathShadeProperties.html +0 -539
- data/rdoc/RubyXL/CT_PatternFillProperties.html +0 -539
- data/rdoc/RubyXL/CT_Point3D.html +0 -539
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +0 -539
- data/rdoc/RubyXL/CT_PresetColor.html +0 -539
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +0 -539
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +0 -539
- data/rdoc/RubyXL/CT_PresetTextShape.html +0 -539
- data/rdoc/RubyXL/CT_ReflectionEffect.html +0 -539
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +0 -539
- data/rdoc/RubyXL/CT_RelativeRect.html +0 -539
- data/rdoc/RubyXL/CT_SRgbColor.html +0 -539
- data/rdoc/RubyXL/CT_ScRgbColor.html +0 -539
- data/rdoc/RubyXL/CT_Scene3D.html +0 -539
- data/rdoc/RubyXL/CT_SchemeColor.html +0 -539
- data/rdoc/RubyXL/CT_Shape3D.html +0 -539
- data/rdoc/RubyXL/CT_ShapeStyle.html +0 -539
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +0 -539
- data/rdoc/RubyXL/CT_SphereCoords.html +0 -539
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +0 -539
- data/rdoc/RubyXL/CT_StyleMatrix.html +0 -539
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +0 -539
- data/rdoc/RubyXL/CT_SupplementalFont.html +0 -539
- data/rdoc/RubyXL/CT_SystemColor.html +0 -539
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +0 -539
- data/rdoc/RubyXL/CT_TextBlipBullet.html +0 -539
- data/rdoc/RubyXL/CT_TextCharBullet.html +0 -539
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +0 -539
- data/rdoc/RubyXL/CT_TextFont.html +0 -539
- data/rdoc/RubyXL/CT_TextListStyle.html +0 -539
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +0 -539
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +0 -539
- data/rdoc/RubyXL/CT_TextSpacing.html +0 -539
- data/rdoc/RubyXL/CT_TextTabStop.html +0 -539
- data/rdoc/RubyXL/CT_TextTabStopList.html +0 -539
- data/rdoc/RubyXL/CT_TileInfoProperties.html +0 -539
- data/rdoc/RubyXL/CT_TintEffect.html +0 -539
- data/rdoc/RubyXL/CT_Transform2D.html +0 -539
- data/rdoc/RubyXL/CT_TransformEffect.html +0 -539
- data/rdoc/RubyXL/CT_Vector3D.html +0 -539
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +0 -539
- data/rdoc/RubyXL/CalculationChain.html +0 -633
- data/rdoc/RubyXL/CalculationChainCell.html +0 -539
- data/rdoc/RubyXL/CalculationProperties.html +0 -539
- data/rdoc/RubyXL/Cell.html +0 -1315
- data/rdoc/RubyXL/CellConvenienceMethods.html +0 -2311
- data/rdoc/RubyXL/CellExt.html +0 -539
- data/rdoc/RubyXL/CellSmartTag.html +0 -539
- data/rdoc/RubyXL/CellSmartTagProperty.html +0 -539
- data/rdoc/RubyXL/CellSmartTags.html +0 -539
- data/rdoc/RubyXL/CellStyle.html +0 -539
- data/rdoc/RubyXL/CellStyleXFs.html +0 -608
- data/rdoc/RubyXL/CellStyles.html +0 -608
- data/rdoc/RubyXL/CellValue.html +0 -609
- data/rdoc/RubyXL/CellWatch.html +0 -539
- data/rdoc/RubyXL/CellWatches.html +0 -539
- data/rdoc/RubyXL/CellXFs.html +0 -609
- data/rdoc/RubyXL/ChartColorsFile.html +0 -568
- data/rdoc/RubyXL/ChartFile.html +0 -664
- data/rdoc/RubyXL/ChartStyleFile.html +0 -568
- data/rdoc/RubyXL/ChartUserShapesFile.html +0 -568
- data/rdoc/RubyXL/Chartsheet.html +0 -743
- data/rdoc/RubyXL/ChartsheetPageSetup.html +0 -539
- data/rdoc/RubyXL/ChartsheetProperties.html +0 -539
- data/rdoc/RubyXL/ChartsheetProtection.html +0 -539
- data/rdoc/RubyXL/ChartsheetView.html +0 -539
- data/rdoc/RubyXL/ChartsheetViews.html +0 -539
- data/rdoc/RubyXL/Color.html +0 -629
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +0 -774
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +0 -845
- data/rdoc/RubyXL/ColorConvenienceClasses.html +0 -528
- data/rdoc/RubyXL/ColorConvenienceMethods.html +0 -606
- data/rdoc/RubyXL/ColorFilter.html +0 -539
- data/rdoc/RubyXL/ColorScale.html +0 -539
- data/rdoc/RubyXL/ColorSet.html +0 -539
- data/rdoc/RubyXL/Colors.html +0 -539
- data/rdoc/RubyXL/ColumnRange.html +0 -786
- data/rdoc/RubyXL/ColumnRanges.html +0 -773
- data/rdoc/RubyXL/Comment.html +0 -539
- data/rdoc/RubyXL/CommentList.html +0 -539
- data/rdoc/RubyXL/CommentsFile.html +0 -657
- data/rdoc/RubyXL/ConditionalFormatValue.html +0 -539
- data/rdoc/RubyXL/ConditionalFormatting.html +0 -539
- data/rdoc/RubyXL/ConditionalFormattingRule.html +0 -539
- data/rdoc/RubyXL/Connection.html +0 -539
- data/rdoc/RubyXL/ConnectionTable.html +0 -539
- data/rdoc/RubyXL/ConnectionTables.html +0 -539
- data/rdoc/RubyXL/ConnectionTextField.html +0 -539
- data/rdoc/RubyXL/ConnectionTextFields.html +0 -539
- data/rdoc/RubyXL/Connections.html +0 -633
- data/rdoc/RubyXL/ContentTypeDefault.html +0 -543
- data/rdoc/RubyXL/ContentTypeOverride.html +0 -543
- data/rdoc/RubyXL/ContentTypes.html +0 -721
- data/rdoc/RubyXL/ControlPropertiesFile.html +0 -568
- data/rdoc/RubyXL/CorePropertiesFile.html +0 -1013
- data/rdoc/RubyXL/CustomColor.html +0 -539
- data/rdoc/RubyXL/CustomColorList.html +0 -539
- data/rdoc/RubyXL/CustomFilter.html +0 -539
- data/rdoc/RubyXL/CustomFilters.html +0 -539
- data/rdoc/RubyXL/CustomGeometry.html +0 -539
- data/rdoc/RubyXL/CustomProperties.html +0 -539
- data/rdoc/RubyXL/CustomPropertiesFile.html +0 -568
- data/rdoc/RubyXL/CustomProperty.html +0 -539
- data/rdoc/RubyXL/CustomPropertyFile.html +0 -568
- data/rdoc/RubyXL/CustomSheetView.html +0 -539
- data/rdoc/RubyXL/CustomSheetViews.html +0 -539
- data/rdoc/RubyXL/CustomWorkbookView.html +0 -539
- data/rdoc/RubyXL/CustomWorkbookViews.html +0 -539
- data/rdoc/RubyXL/CustomXMLFile.html +0 -560
- data/rdoc/RubyXL/DXF.html +0 -539
- data/rdoc/RubyXL/DXFs.html +0 -539
- data/rdoc/RubyXL/DataBar.html +0 -539
- data/rdoc/RubyXL/DataConsolidate.html +0 -539
- data/rdoc/RubyXL/DataConsolidationReference.html +0 -539
- data/rdoc/RubyXL/DataConsolidationReferences.html +0 -539
- data/rdoc/RubyXL/DataType.html +0 -589
- data/rdoc/RubyXL/DataValidation.html +0 -539
- data/rdoc/RubyXL/DataValidations.html +0 -539
- data/rdoc/RubyXL/DateGroupItem.html +0 -539
- data/rdoc/RubyXL/DefinedName.html +0 -539
- data/rdoc/RubyXL/DefinedNameExt.html +0 -539
- data/rdoc/RubyXL/DefinedNames.html +0 -616
- data/rdoc/RubyXL/DefinedNamesExt.html +0 -539
- data/rdoc/RubyXL/DocumentPropertiesFile.html +0 -725
- data/rdoc/RubyXL/DrawingFile.html +0 -663
- data/rdoc/RubyXL/DynamicFilter.html +0 -539
- data/rdoc/RubyXL/EmbeddedControl.html +0 -539
- data/rdoc/RubyXL/EmbeddedControls.html +0 -539
- data/rdoc/RubyXL/Extension.html +0 -539
- data/rdoc/RubyXL/ExtensionStorageArea.html +0 -539
- data/rdoc/RubyXL/Extents.html +0 -539
- data/rdoc/RubyXL/ExternalBook.html +0 -539
- data/rdoc/RubyXL/ExternalLinksFile.html +0 -659
- data/rdoc/RubyXL/ExternalReference.html +0 -539
- data/rdoc/RubyXL/ExternalReferences.html +0 -539
- data/rdoc/RubyXL/ExtraColorSchemeList.html +0 -539
- data/rdoc/RubyXL/FieldItem.html +0 -539
- data/rdoc/RubyXL/FileRecoveryProperties.html +0 -539
- data/rdoc/RubyXL/FileSharing.html +0 -539
- data/rdoc/RubyXL/FileVersion.html +0 -539
- data/rdoc/RubyXL/Fill.html +0 -608
- data/rdoc/RubyXL/Fills.html +0 -608
- data/rdoc/RubyXL/FilterContainer.html +0 -539
- data/rdoc/RubyXL/FloatNode.html +0 -543
- data/rdoc/RubyXL/FloatValue.html +0 -543
- data/rdoc/RubyXL/Font.html +0 -626
- data/rdoc/RubyXL/FontConvenienceMethods.html +0 -1169
- data/rdoc/RubyXL/FontScheme.html +0 -539
- data/rdoc/RubyXL/Fonts.html +0 -608
- data/rdoc/RubyXL/Formula.html +0 -539
- data/rdoc/RubyXL/FunctionGroup.html +0 -539
- data/rdoc/RubyXL/FunctionGroups.html +0 -539
- data/rdoc/RubyXL/GenericStorageObject.html +0 -803
- data/rdoc/RubyXL/GradientFill.html +0 -539
- data/rdoc/RubyXL/HeaderFooterSettings.html +0 -539
- data/rdoc/RubyXL/Hyperlink.html +0 -539
- data/rdoc/RubyXL/HyperlinkRelFile.html +0 -560
- data/rdoc/RubyXL/Hyperlinks.html +0 -539
- data/rdoc/RubyXL/IconFilter.html +0 -539
- data/rdoc/RubyXL/IconSet.html +0 -539
- data/rdoc/RubyXL/IgnoredError.html +0 -539
- data/rdoc/RubyXL/IgnoredErrors.html +0 -539
- data/rdoc/RubyXL/IndexedColors.html +0 -539
- data/rdoc/RubyXL/InputCells.html +0 -539
- data/rdoc/RubyXL/IntegerNode.html +0 -543
- data/rdoc/RubyXL/IntegerValue.html +0 -543
- data/rdoc/RubyXL/LegacyCell.html +0 -597
- data/rdoc/RubyXL/LegacyWorksheet.html +0 -760
- data/rdoc/RubyXL/MRUColors.html +0 -539
- data/rdoc/RubyXL/MacrosFile.html +0 -568
- data/rdoc/RubyXL/MergedCell.html +0 -539
- data/rdoc/RubyXL/MergedCells.html +0 -539
- data/rdoc/RubyXL/NumFmt.html +0 -539
- data/rdoc/RubyXL/NumberFormat.html +0 -609
- data/rdoc/RubyXL/NumberFormats.html +0 -625
- data/rdoc/RubyXL/OLEObject.html +0 -539
- data/rdoc/RubyXL/OLEObjectFile.html +0 -568
- data/rdoc/RubyXL/OLEObjects.html +0 -539
- data/rdoc/RubyXL/OLESize.html +0 -539
- data/rdoc/RubyXL/OOXMLContainerObject.html +0 -909
- data/rdoc/RubyXL/OOXMLIgnored.html +0 -681
- data/rdoc/RubyXL/OOXMLObject.html +0 -561
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +0 -1034
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +0 -1091
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +0 -1174
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +0 -891
- data/rdoc/RubyXL/OdbcOleDbProperties.html +0 -539
- data/rdoc/RubyXL/Offset.html +0 -539
- data/rdoc/RubyXL/OlapProperties.html +0 -539
- data/rdoc/RubyXL/OleItem.html +0 -539
- data/rdoc/RubyXL/OleItems.html +0 -539
- data/rdoc/RubyXL/OleLink.html +0 -539
- data/rdoc/RubyXL/OutlineProperties.html +0 -539
- data/rdoc/RubyXL/PageMargins.html +0 -539
- data/rdoc/RubyXL/PageSetup.html +0 -539
- data/rdoc/RubyXL/PageSetupProperties.html +0 -539
- data/rdoc/RubyXL/Pane.html +0 -539
- data/rdoc/RubyXL/Parser.html +0 -670
- data/rdoc/RubyXL/PatternFill.html +0 -539
- data/rdoc/RubyXL/PersonMetadata.html +0 -568
- data/rdoc/RubyXL/PhoneticProperties.html +0 -539
- data/rdoc/RubyXL/PhoneticRun.html +0 -539
- data/rdoc/RubyXL/PivotArea.html +0 -539
- data/rdoc/RubyXL/PivotCache.html +0 -539
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +0 -590
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +0 -568
- data/rdoc/RubyXL/PivotCaches.html +0 -539
- data/rdoc/RubyXL/PivotReference.html +0 -539
- data/rdoc/RubyXL/PivotReferences.html +0 -539
- data/rdoc/RubyXL/PivotSelection.html +0 -539
- data/rdoc/RubyXL/PivotTableFile.html +0 -590
- data/rdoc/RubyXL/PresetGeometry.html +0 -539
- data/rdoc/RubyXL/PrintOptions.html +0 -539
- data/rdoc/RubyXL/PrinterSettingsFile.html +0 -568
- data/rdoc/RubyXL/ProtectedRange.html +0 -539
- data/rdoc/RubyXL/ProtectedRanges.html +0 -539
- data/rdoc/RubyXL/Protection.html +0 -539
- data/rdoc/RubyXL/QueryParameter.html +0 -539
- data/rdoc/RubyXL/QueryParameters.html +0 -539
- data/rdoc/RubyXL/QueryTable.html +0 -655
- data/rdoc/RubyXL/QueryTableDeletedField.html +0 -539
- data/rdoc/RubyXL/QueryTableDeletedFields.html +0 -539
- data/rdoc/RubyXL/QueryTableField.html +0 -539
- data/rdoc/RubyXL/QueryTableFields.html +0 -539
- data/rdoc/RubyXL/QueryTableRefresh.html +0 -539
- data/rdoc/RubyXL/RID.html +0 -543
- data/rdoc/RubyXL/RawOOXML.html +0 -703
- data/rdoc/RubyXL/Reference.html +0 -1332
- data/rdoc/RubyXL/Relationship.html +0 -543
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +0 -604
- data/rdoc/RubyXL/RelationshipSupport.html +0 -943
- data/rdoc/RubyXL/RevisionPointer.html +0 -539
- data/rdoc/RubyXL/RichText.html +0 -611
- data/rdoc/RubyXL/RichTextRun.html +0 -608
- data/rdoc/RubyXL/Row.html +0 -1003
- data/rdoc/RubyXL/RowExt.html +0 -539
- data/rdoc/RubyXL/RunProperties.html +0 -539
- data/rdoc/RubyXL/Scenario.html +0 -539
- data/rdoc/RubyXL/Scenarios.html +0 -539
- data/rdoc/RubyXL/Selection.html +0 -616
- data/rdoc/RubyXL/ShapeGuide.html +0 -539
- data/rdoc/RubyXL/ShapeTextRectangle.html +0 -539
- data/rdoc/RubyXL/SharedStringsTable.html +0 -952
- data/rdoc/RubyXL/Sheet.html +0 -539
- data/rdoc/RubyXL/SheetCalculationProperties.html +0 -539
- data/rdoc/RubyXL/SheetData.html +0 -652
- data/rdoc/RubyXL/SheetDataExt.html +0 -539
- data/rdoc/RubyXL/SheetDataSet.html +0 -539
- data/rdoc/RubyXL/SheetMetadata.html +0 -568
- data/rdoc/RubyXL/SheetName.html +0 -539
- data/rdoc/RubyXL/SheetNames.html +0 -539
- data/rdoc/RubyXL/Sheets.html +0 -539
- data/rdoc/RubyXL/SlicerCacheFile.html +0 -568
- data/rdoc/RubyXL/SlicerFile.html +0 -568
- data/rdoc/RubyXL/SmartTagProperties.html +0 -539
- data/rdoc/RubyXL/SmartTagType.html +0 -539
- data/rdoc/RubyXL/SmartTagTypes.html +0 -539
- data/rdoc/RubyXL/SmartTags.html +0 -539
- data/rdoc/RubyXL/SortCondition.html +0 -539
- data/rdoc/RubyXL/SortState.html +0 -539
- data/rdoc/RubyXL/Sqref.html +0 -681
- data/rdoc/RubyXL/Stop.html +0 -539
- data/rdoc/RubyXL/StringNode.html +0 -543
- data/rdoc/RubyXL/StringNodeW3C.html +0 -681
- data/rdoc/RubyXL/StringValue.html +0 -543
- data/rdoc/RubyXL/Stylesheet.html +0 -864
- data/rdoc/RubyXL/TableFile.html +0 -568
- data/rdoc/RubyXL/TableParts.html +0 -543
- data/rdoc/RubyXL/TableStyle.html +0 -539
- data/rdoc/RubyXL/TableStyles.html +0 -539
- data/rdoc/RubyXL/Text.html +0 -679
- data/rdoc/RubyXL/TextImportSettings.html +0 -539
- data/rdoc/RubyXL/Theme.html +0 -1077
- data/rdoc/RubyXL/ThemeElements.html +0 -539
- data/rdoc/RubyXL/ThumbnailFile.html +0 -568
- data/rdoc/RubyXL/Top10.html +0 -539
- data/rdoc/RubyXL/VMLDrawingFile.html +0 -590
- data/rdoc/RubyXL/Variant.html +0 -539
- data/rdoc/RubyXL/Vector.html +0 -612
- data/rdoc/RubyXL/VectorValue.html +0 -543
- data/rdoc/RubyXL/VisualProperties.html +0 -539
- data/rdoc/RubyXL/WebPublishObject.html +0 -539
- data/rdoc/RubyXL/WebPublishObjects.html +0 -539
- data/rdoc/RubyXL/WebPublishingItem.html +0 -539
- data/rdoc/RubyXL/WebPublishingItems.html +0 -539
- data/rdoc/RubyXL/WebPublishingProperties.html +0 -539
- data/rdoc/RubyXL/WebQueryProperties.html +0 -539
- data/rdoc/RubyXL/Workbook.html +0 -2085
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +0 -1407
- data/rdoc/RubyXL/WorkbookProperties.html +0 -539
- data/rdoc/RubyXL/WorkbookProtection.html +0 -539
- data/rdoc/RubyXL/WorkbookRoot.html +0 -940
- data/rdoc/RubyXL/WorkbookView.html +0 -539
- data/rdoc/RubyXL/WorkbookViews.html +0 -539
- data/rdoc/RubyXL/Worksheet.html +0 -1224
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +0 -4087
- data/rdoc/RubyXL/WorksheetDimensions.html +0 -539
- data/rdoc/RubyXL/WorksheetFormatProperties.html +0 -543
- data/rdoc/RubyXL/WorksheetProperties.html +0 -539
- data/rdoc/RubyXL/WorksheetProtection.html +0 -539
- data/rdoc/RubyXL/WorksheetView.html +0 -539
- data/rdoc/RubyXL/WorksheetViews.html +0 -539
- data/rdoc/RubyXL/XF.html +0 -539
- data/rdoc/RubyXL.html +0 -1381
- data/rdoc/created.rid +0 -45
- data/rdoc/css/rdoc.css +0 -1955
- data/rdoc/index.html +0 -455
- data/rdoc/js/aliki.js +0 -511
- data/rdoc/js/bash_highlighter.js +0 -167
- data/rdoc/js/c_highlighter.js +0 -299
- data/rdoc/js/search_controller.js +0 -129
- data/rdoc/js/search_data.js +0 -1
- data/rdoc/js/search_navigation.js +0 -105
- data/rdoc/js/search_ranker.js +0 -239
- data/rdoc/js/theme-toggle.js +0 -112
- data/spec/lib/cell_spec.rb +0 -694
- data/spec/lib/color_spec.rb +0 -21
- data/spec/lib/parser_spec.rb +0 -118
- data/spec/lib/reference_spec.rb +0 -122
- data/spec/lib/rgb_color_spec.rb +0 -29
- data/spec/lib/stylesheet_spec.rb +0 -27
- data/spec/lib/text_spec.rb +0 -27
- data/spec/lib/workbook_root_spec.rb +0 -43
- data/spec/lib/workbook_spec.rb +0 -197
- data/spec/lib/worksheet_spec.rb +0 -1777
- data/spec/spec_helper.rb +0 -13
- data/test/input/.gitkeep +0 -0
- data/test/output/.gitkeep +0 -0
- data/test/test_parse_write.rb +0 -15
- data/tmp/.gitignore +0 -1
|
@@ -1,2311 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
|
|
3
|
-
<html lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
-
|
|
8
|
-
<title>module RubyXL::CellConvenienceMethods - rubyXL 3.4.39</title>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<meta
|
|
12
|
-
name="keywords"
|
|
13
|
-
content="ruby,module,RubyXL::CellConvenienceMethods"
|
|
14
|
-
>
|
|
15
|
-
|
|
16
|
-
<meta
|
|
17
|
-
name="description"
|
|
18
|
-
content="Documentation for the RubyXL::CellConvenienceMethods module"
|
|
19
|
-
>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<!-- Open Graph / Facebook -->
|
|
26
|
-
<meta property="og:type" content="website">
|
|
27
|
-
<meta property="og:title" content="module RubyXL::CellConvenienceMethods - rubyXL 3.4.39">
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<meta
|
|
32
|
-
property="og:description"
|
|
33
|
-
content="Documentation for RubyXL::CellConvenienceMethods module - API reference and code examples"
|
|
34
|
-
>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<!-- Twitter -->
|
|
41
|
-
<meta name="twitter:card" content="summary">
|
|
42
|
-
<meta name="twitter:title" content="module RubyXL::CellConvenienceMethods - rubyXL 3.4.39">
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<meta
|
|
47
|
-
name="twitter:description"
|
|
48
|
-
content="Documentation for RubyXL::CellConvenienceMethods module - API reference and code examples"
|
|
49
|
-
>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<script type="text/javascript">
|
|
54
|
-
var rdoc_rel_prefix = "../";
|
|
55
|
-
var index_rel_prefix = "../";
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
<script
|
|
59
|
-
src="../js/theme-toggle.js?v=7.2.0"
|
|
60
|
-
></script>
|
|
61
|
-
|
|
62
|
-
<script
|
|
63
|
-
src="../js/search_navigation.js?v=7.2.0"
|
|
64
|
-
defer
|
|
65
|
-
></script>
|
|
66
|
-
|
|
67
|
-
<script
|
|
68
|
-
src="../js/search_data.js?v=7.2.0"
|
|
69
|
-
defer
|
|
70
|
-
></script>
|
|
71
|
-
|
|
72
|
-
<script
|
|
73
|
-
src="../js/search_ranker.js?v=7.2.0"
|
|
74
|
-
defer
|
|
75
|
-
></script>
|
|
76
|
-
|
|
77
|
-
<script
|
|
78
|
-
src="../js/search_controller.js?v=7.2.0"
|
|
79
|
-
defer
|
|
80
|
-
></script>
|
|
81
|
-
|
|
82
|
-
<script
|
|
83
|
-
src="../js/c_highlighter.js?v=7.2.0"
|
|
84
|
-
defer
|
|
85
|
-
></script>
|
|
86
|
-
|
|
87
|
-
<script
|
|
88
|
-
src="../js/bash_highlighter.js?v=7.2.0"
|
|
89
|
-
defer
|
|
90
|
-
></script>
|
|
91
|
-
|
|
92
|
-
<script
|
|
93
|
-
src="../js/aliki.js?v=7.2.0"
|
|
94
|
-
defer
|
|
95
|
-
></script>
|
|
96
|
-
|
|
97
|
-
<link
|
|
98
|
-
href="../css/rdoc.css?v=7.2.0"
|
|
99
|
-
rel="stylesheet"
|
|
100
|
-
>
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<body role="document" class="module has-toc">
|
|
106
|
-
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
|
|
107
|
-
<!-- Chevron (right arrow) - used for expand/collapse -->
|
|
108
|
-
<symbol
|
|
109
|
-
id="icon-chevron"
|
|
110
|
-
viewBox="0 0 24 24"
|
|
111
|
-
fill="none"
|
|
112
|
-
stroke="currentColor"
|
|
113
|
-
stroke-width="2"
|
|
114
|
-
stroke-linecap="round"
|
|
115
|
-
stroke-linejoin="round"
|
|
116
|
-
>
|
|
117
|
-
<polyline points="9 18 15 12 9 6"></polyline>
|
|
118
|
-
</symbol>
|
|
119
|
-
|
|
120
|
-
<!-- File/Document - Pages section -->
|
|
121
|
-
<symbol
|
|
122
|
-
id="icon-file"
|
|
123
|
-
viewBox="0 0 24 24"
|
|
124
|
-
fill="none"
|
|
125
|
-
stroke="currentColor"
|
|
126
|
-
stroke-width="2"
|
|
127
|
-
stroke-linecap="round"
|
|
128
|
-
stroke-linejoin="round"
|
|
129
|
-
>
|
|
130
|
-
<path
|
|
131
|
-
d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"
|
|
132
|
-
></path>
|
|
133
|
-
|
|
134
|
-
<polyline points="14 2 14 8 20 8"></polyline>
|
|
135
|
-
</symbol>
|
|
136
|
-
|
|
137
|
-
<!-- Layers/Stack - Classes and Modules section -->
|
|
138
|
-
<symbol
|
|
139
|
-
id="icon-layers"
|
|
140
|
-
viewBox="0 0 24 24"
|
|
141
|
-
fill="none"
|
|
142
|
-
stroke="currentColor"
|
|
143
|
-
stroke-width="2"
|
|
144
|
-
stroke-linecap="round"
|
|
145
|
-
stroke-linejoin="round"
|
|
146
|
-
>
|
|
147
|
-
<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon>
|
|
148
|
-
<polyline points="2 17 12 22 22 17"></polyline>
|
|
149
|
-
<polyline points="2 12 12 17 22 12"></polyline>
|
|
150
|
-
</symbol>
|
|
151
|
-
|
|
152
|
-
<!-- Curly braces with C - Class Methods section -->
|
|
153
|
-
<symbol
|
|
154
|
-
id="icon-class-methods"
|
|
155
|
-
viewBox="0 0 24 24"
|
|
156
|
-
fill="none"
|
|
157
|
-
stroke="currentColor"
|
|
158
|
-
stroke-width="2"
|
|
159
|
-
stroke-linecap="round"
|
|
160
|
-
stroke-linejoin="round"
|
|
161
|
-
>
|
|
162
|
-
<path d="M6 3C3.5 3 2 4.5 2 7v3c0 1.5-1 2-1 2s1 .5 1 2v5c0 2.5 1.5 4 4 4"></path>
|
|
163
|
-
<path d="M18 3c2.5 0 4 1.5 4 4v3c0 1.5 1 2 1 2s-1 .5-1 2v5c0 2.5-1.5 4-4 4"></path>
|
|
164
|
-
|
|
165
|
-
<text
|
|
166
|
-
x="12"
|
|
167
|
-
y="17"
|
|
168
|
-
text-anchor="middle"
|
|
169
|
-
font-size="13"
|
|
170
|
-
font-weight="bold"
|
|
171
|
-
fill="currentColor"
|
|
172
|
-
stroke="none"
|
|
173
|
-
>
|
|
174
|
-
C
|
|
175
|
-
</text>
|
|
176
|
-
</symbol>
|
|
177
|
-
|
|
178
|
-
<!-- Curly braces with I - Instance Methods section -->
|
|
179
|
-
<symbol
|
|
180
|
-
id="icon-instance-methods"
|
|
181
|
-
viewBox="0 0 24 24"
|
|
182
|
-
fill="none"
|
|
183
|
-
stroke="currentColor"
|
|
184
|
-
stroke-width="2"
|
|
185
|
-
stroke-linecap="round"
|
|
186
|
-
stroke-linejoin="round"
|
|
187
|
-
>
|
|
188
|
-
<path d="M6 3C3.5 3 2 4.5 2 7v3c0 1.5-1 2-1 2s1 .5 1 2v5c0 2.5 1.5 4 4 4"></path>
|
|
189
|
-
<path d="M18 3c2.5 0 4 1.5 4 4v3c0 1.5 1 2 1 2s-1 .5-1 2v5c0 2.5-1.5 4-4 4"></path>
|
|
190
|
-
|
|
191
|
-
<text
|
|
192
|
-
x="12"
|
|
193
|
-
y="17"
|
|
194
|
-
text-anchor="middle"
|
|
195
|
-
font-size="13"
|
|
196
|
-
font-weight="bold"
|
|
197
|
-
fill="currentColor"
|
|
198
|
-
stroke="none"
|
|
199
|
-
>
|
|
200
|
-
I
|
|
201
|
-
</text>
|
|
202
|
-
</symbol>
|
|
203
|
-
|
|
204
|
-
<!-- Double chevrons up - Ancestors section -->
|
|
205
|
-
<symbol
|
|
206
|
-
id="icon-ancestors"
|
|
207
|
-
viewBox="0 0 24 24"
|
|
208
|
-
fill="none"
|
|
209
|
-
stroke="currentColor"
|
|
210
|
-
stroke-width="2"
|
|
211
|
-
stroke-linecap="round"
|
|
212
|
-
stroke-linejoin="round"
|
|
213
|
-
>
|
|
214
|
-
<polyline points="17 11 12 6 7 11"></polyline>
|
|
215
|
-
<polyline points="17 18 12 13 7 18"></polyline>
|
|
216
|
-
</symbol>
|
|
217
|
-
|
|
218
|
-
<!-- User with plus - Included Modules section -->
|
|
219
|
-
<symbol
|
|
220
|
-
id="icon-includes"
|
|
221
|
-
viewBox="0 0 24 24"
|
|
222
|
-
fill="none"
|
|
223
|
-
stroke="currentColor"
|
|
224
|
-
stroke-width="2"
|
|
225
|
-
stroke-linecap="round"
|
|
226
|
-
stroke-linejoin="round"
|
|
227
|
-
>
|
|
228
|
-
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
229
|
-
<circle cx="8.5" cy="7" r="4"></circle>
|
|
230
|
-
|
|
231
|
-
<line
|
|
232
|
-
x1="20"
|
|
233
|
-
y1="8"
|
|
234
|
-
x2="20"
|
|
235
|
-
y2="14"
|
|
236
|
-
></line>
|
|
237
|
-
|
|
238
|
-
<line
|
|
239
|
-
x1="23"
|
|
240
|
-
y1="11"
|
|
241
|
-
x2="17"
|
|
242
|
-
y2="11"
|
|
243
|
-
></line>
|
|
244
|
-
</symbol>
|
|
245
|
-
|
|
246
|
-
<!-- User with check - Extended Modules section -->
|
|
247
|
-
<symbol
|
|
248
|
-
id="icon-extends"
|
|
249
|
-
viewBox="0 0 24 24"
|
|
250
|
-
fill="none"
|
|
251
|
-
stroke="currentColor"
|
|
252
|
-
stroke-width="2"
|
|
253
|
-
stroke-linecap="round"
|
|
254
|
-
stroke-linejoin="round"
|
|
255
|
-
>
|
|
256
|
-
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
257
|
-
<circle cx="8.5" cy="7" r="4"></circle>
|
|
258
|
-
<polyline points="17 11 19 13 23 9"></polyline>
|
|
259
|
-
</symbol>
|
|
260
|
-
|
|
261
|
-
<!-- List - Sections section -->
|
|
262
|
-
<symbol
|
|
263
|
-
id="icon-list"
|
|
264
|
-
viewBox="0 0 24 24"
|
|
265
|
-
fill="none"
|
|
266
|
-
stroke="currentColor"
|
|
267
|
-
stroke-width="2"
|
|
268
|
-
stroke-linecap="round"
|
|
269
|
-
stroke-linejoin="round"
|
|
270
|
-
>
|
|
271
|
-
<line
|
|
272
|
-
x1="8"
|
|
273
|
-
y1="6"
|
|
274
|
-
x2="21"
|
|
275
|
-
y2="6"
|
|
276
|
-
></line>
|
|
277
|
-
|
|
278
|
-
<line
|
|
279
|
-
x1="8"
|
|
280
|
-
y1="12"
|
|
281
|
-
x2="21"
|
|
282
|
-
y2="12"
|
|
283
|
-
></line>
|
|
284
|
-
|
|
285
|
-
<line
|
|
286
|
-
x1="8"
|
|
287
|
-
y1="18"
|
|
288
|
-
x2="21"
|
|
289
|
-
y2="18"
|
|
290
|
-
></line>
|
|
291
|
-
|
|
292
|
-
<line
|
|
293
|
-
x1="3"
|
|
294
|
-
y1="6"
|
|
295
|
-
x2="3.01"
|
|
296
|
-
y2="6"
|
|
297
|
-
></line>
|
|
298
|
-
|
|
299
|
-
<line
|
|
300
|
-
x1="3"
|
|
301
|
-
y1="12"
|
|
302
|
-
x2="3.01"
|
|
303
|
-
y2="12"
|
|
304
|
-
></line>
|
|
305
|
-
|
|
306
|
-
<line
|
|
307
|
-
x1="3"
|
|
308
|
-
y1="18"
|
|
309
|
-
x2="3.01"
|
|
310
|
-
y2="18"
|
|
311
|
-
></line>
|
|
312
|
-
</symbol>
|
|
313
|
-
</svg>
|
|
314
|
-
|
|
315
|
-
<header class="top-navbar">
|
|
316
|
-
<a href="../index.html" class="navbar-brand">
|
|
317
|
-
rubyXL 3.4.39
|
|
318
|
-
</a>
|
|
319
|
-
|
|
320
|
-
<!-- Desktop search bar -->
|
|
321
|
-
<div class="navbar-search navbar-search-desktop" role="search">
|
|
322
|
-
<form action="#" method="get" accept-charset="utf-8">
|
|
323
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
|
324
|
-
aria-autocomplete="list" aria-controls="search-results-desktop"
|
|
325
|
-
type="text" name="search" placeholder="Search (/) for a class, method..."
|
|
326
|
-
spellcheck="false" autocomplete="off"
|
|
327
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
|
328
|
-
<ul id="search-results-desktop" aria-label="Search Results"
|
|
329
|
-
aria-busy="false" aria-expanded="false"
|
|
330
|
-
aria-atomic="false" class="initially-hidden search-results"></ul>
|
|
331
|
-
</form>
|
|
332
|
-
</div>
|
|
333
|
-
|
|
334
|
-
<!-- Mobile search icon button -->
|
|
335
|
-
<button id="search-toggle" class="navbar-search-mobile" aria-label="Open search" type="button">
|
|
336
|
-
<span aria-hidden="true">🔍</span>
|
|
337
|
-
</button>
|
|
338
|
-
|
|
339
|
-
<!-- Theme toggle button -->
|
|
340
|
-
<button id="theme-toggle" class="theme-toggle" aria-label="Switch to dark mode" type="button">
|
|
341
|
-
<span class="theme-toggle-icon" aria-hidden="true">🌙</span>
|
|
342
|
-
</button>
|
|
343
|
-
</header>
|
|
344
|
-
|
|
345
|
-
<!-- Search Modal (Mobile) -->
|
|
346
|
-
<div id="search-modal" class="search-modal" hidden aria-modal="true" role="dialog" aria-label="Search">
|
|
347
|
-
<div class="search-modal-backdrop"></div>
|
|
348
|
-
<div class="search-modal-content">
|
|
349
|
-
<div class="search-modal-header">
|
|
350
|
-
<form class="search-modal-form" action="#" method="get" accept-charset="utf-8">
|
|
351
|
-
<span class="search-modal-icon" aria-hidden="true">🔍</span>
|
|
352
|
-
<input id="search-field-mobile" role="combobox" aria-label="Search"
|
|
353
|
-
aria-autocomplete="list" aria-controls="search-results-mobile"
|
|
354
|
-
type="text" name="search" placeholder="Search documentation"
|
|
355
|
-
spellcheck="false" autocomplete="off">
|
|
356
|
-
<button type="button" class="search-modal-close" aria-label="Close search" id="search-modal-close">
|
|
357
|
-
<span aria-hidden="true">esc</span>
|
|
358
|
-
</button>
|
|
359
|
-
</form>
|
|
360
|
-
</div>
|
|
361
|
-
<div class="search-modal-body">
|
|
362
|
-
<ul id="search-results-mobile" aria-label="Search Results"
|
|
363
|
-
aria-busy="false" aria-expanded="false"
|
|
364
|
-
aria-atomic="false" class="search-results search-modal-results initially-hidden"></ul>
|
|
365
|
-
<div class="search-modal-empty">
|
|
366
|
-
<p>No recent searches</p>
|
|
367
|
-
</div>
|
|
368
|
-
</div>
|
|
369
|
-
</div>
|
|
370
|
-
</div>
|
|
371
|
-
|
|
372
|
-
<div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
|
|
373
|
-
<span aria-hidden="true">☰</span>
|
|
374
|
-
</div>
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
<nav id="navigation" role="navigation" hidden>
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<div id="fileindex-section" class="nav-section">
|
|
384
|
-
<details class="nav-section-collapsible" >
|
|
385
|
-
<summary class="nav-section-header">
|
|
386
|
-
<span class="nav-section-icon">
|
|
387
|
-
<svg>
|
|
388
|
-
<use href="#icon-file"></use>
|
|
389
|
-
</svg>
|
|
390
|
-
</span>
|
|
391
|
-
|
|
392
|
-
<span class="nav-section-title">Pages</span>
|
|
393
|
-
|
|
394
|
-
<span class="nav-section-chevron">
|
|
395
|
-
<svg>
|
|
396
|
-
<use href="#icon-chevron"></use>
|
|
397
|
-
</svg>
|
|
398
|
-
</span>
|
|
399
|
-
</summary>
|
|
400
|
-
|
|
401
|
-
<ul class="nav-list">
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
<li>
|
|
409
|
-
<a href="../README_rdoc.html">
|
|
410
|
-
README
|
|
411
|
-
</a>
|
|
412
|
-
</li>
|
|
413
|
-
|
|
414
|
-
</ul>
|
|
415
|
-
</details>
|
|
416
|
-
</div>
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
<div class="nav-section">
|
|
431
|
-
<details class="nav-section-collapsible" open>
|
|
432
|
-
<summary class="nav-section-header">
|
|
433
|
-
<span class="nav-section-icon">
|
|
434
|
-
<svg><use href="#icon-instance-methods"></use></svg>
|
|
435
|
-
</span>
|
|
436
|
-
<span class="nav-section-title">Instance Methods</span>
|
|
437
|
-
<span class="nav-section-chevron">
|
|
438
|
-
<svg><use href="#icon-chevron"></use></svg>
|
|
439
|
-
</span>
|
|
440
|
-
</summary>
|
|
441
|
-
<ul class="nav-list" role="directory">
|
|
442
|
-
|
|
443
|
-
<li ><a href="#method-i-add_hyperlink">add_hyperlink</a></li>
|
|
444
|
-
|
|
445
|
-
<li ><a href="#method-i-add_shared_string">add_shared_string</a></li>
|
|
446
|
-
|
|
447
|
-
<li ><a href="#method-i-change_border">change_border</a></li>
|
|
448
|
-
|
|
449
|
-
<li ><a href="#method-i-change_border_color">change_border_color</a></li>
|
|
450
|
-
|
|
451
|
-
<li ><a href="#method-i-change_contents">change_contents</a></li>
|
|
452
|
-
|
|
453
|
-
<li ><a href="#method-i-change_fill">change_fill</a></li>
|
|
454
|
-
|
|
455
|
-
<li ><a href="#method-i-change_font_bold">change_font_bold</a></li>
|
|
456
|
-
|
|
457
|
-
<li ><a href="#method-i-change_font_color">change_font_color</a></li>
|
|
458
|
-
|
|
459
|
-
<li ><a href="#method-i-change_font_italics">change_font_italics</a></li>
|
|
460
|
-
|
|
461
|
-
<li ><a href="#method-i-change_font_name">change_font_name</a></li>
|
|
462
|
-
|
|
463
|
-
<li ><a href="#method-i-change_font_size">change_font_size</a></li>
|
|
464
|
-
|
|
465
|
-
<li ><a href="#method-i-change_font_strikethrough">change_font_strikethrough</a></li>
|
|
466
|
-
|
|
467
|
-
<li ><a href="#method-i-change_font_underline">change_font_underline</a></li>
|
|
468
|
-
|
|
469
|
-
<li ><a href="#method-i-change_horizontal_alignment">change_horizontal_alignment</a></li>
|
|
470
|
-
|
|
471
|
-
<li ><a href="#method-i-change_shrink_to_fit">change_shrink_to_fit</a></li>
|
|
472
|
-
|
|
473
|
-
<li ><a href="#method-i-change_text_indent">change_text_indent</a></li>
|
|
474
|
-
|
|
475
|
-
<li ><a href="#method-i-change_text_rotation">change_text_rotation</a></li>
|
|
476
|
-
|
|
477
|
-
<li ><a href="#method-i-change_text_wrap">change_text_wrap</a></li>
|
|
478
|
-
|
|
479
|
-
<li ><a href="#method-i-change_vertical_alignment">change_vertical_alignment</a></li>
|
|
480
|
-
|
|
481
|
-
<li ><a href="#method-i-fill_color">fill_color</a></li>
|
|
482
|
-
|
|
483
|
-
<li ><a href="#method-i-font_color">font_color</a></li>
|
|
484
|
-
|
|
485
|
-
<li ><a href="#method-i-font_name">font_name</a></li>
|
|
486
|
-
|
|
487
|
-
<li ><a href="#method-i-font_size">font_size</a></li>
|
|
488
|
-
|
|
489
|
-
<li ><a href="#method-i-font_switch">font_switch</a></li>
|
|
490
|
-
|
|
491
|
-
<li ><a href="#method-i-get_border">get_border</a></li>
|
|
492
|
-
|
|
493
|
-
<li ><a href="#method-i-get_border_color">get_border_color</a></li>
|
|
494
|
-
|
|
495
|
-
<li ><a href="#method-i-horizontal_alignment">horizontal_alignment</a></li>
|
|
496
|
-
|
|
497
|
-
<li ><a href="#method-i-is_bolded">is_bolded</a></li>
|
|
498
|
-
|
|
499
|
-
<li ><a href="#method-i-is_italicized">is_italicized</a></li>
|
|
500
|
-
|
|
501
|
-
<li ><a href="#method-i-is_struckthrough">is_struckthrough</a></li>
|
|
502
|
-
|
|
503
|
-
<li ><a href="#method-i-is_underlined">is_underlined</a></li>
|
|
504
|
-
|
|
505
|
-
<li ><a href="#method-i-remove_formula">remove_formula</a></li>
|
|
506
|
-
|
|
507
|
-
<li ><a href="#method-i-set_number_format">set_number_format</a></li>
|
|
508
|
-
|
|
509
|
-
<li ><a href="#method-i-text_indent">text_indent</a></li>
|
|
510
|
-
|
|
511
|
-
<li ><a href="#method-i-text_rotation">text_rotation</a></li>
|
|
512
|
-
|
|
513
|
-
<li ><a href="#method-i-text_wrap">text_wrap</a></li>
|
|
514
|
-
|
|
515
|
-
<li ><a href="#method-i-vertical_alignment">vertical_alignment</a></li>
|
|
516
|
-
|
|
517
|
-
</ul>
|
|
518
|
-
</details>
|
|
519
|
-
</div>
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
<div id="classindex-section" class="nav-section">
|
|
523
|
-
<details class="nav-section-collapsible" open>
|
|
524
|
-
<summary class="nav-section-header">
|
|
525
|
-
<span class="nav-section-icon">
|
|
526
|
-
<svg><use href="#icon-layers"></use></svg>
|
|
527
|
-
</span>
|
|
528
|
-
<span class="nav-section-title">Classes and Modules</span>
|
|
529
|
-
<span class="nav-section-chevron">
|
|
530
|
-
<svg><use href="#icon-chevron"></use></svg>
|
|
531
|
-
</span>
|
|
532
|
-
</summary>
|
|
533
|
-
|
|
534
|
-
<ul class="link-list nav-list"><li><details open><summary><code><a href="../RubyXL.html">RubyXL</a></code></summary><ul class="link-list nav-list"><li><code><a href="../RubyXL/AExtension.html">AExtension</a></code></li><li><code><a href="../RubyXL/AExtensionStorageArea.html">AExtensionStorageArea</a></code></li><li><code><a href="../RubyXL/ActiveX.html">ActiveX</a></code></li><li><code><a href="../RubyXL/ActiveXBinary.html">ActiveXBinary</a></code></li><li><code><a href="../RubyXL/AdjustHandleList.html">AdjustHandleList</a></code></li><li><code><a href="../RubyXL/Alignment.html">Alignment</a></code></li><li><code><a href="../RubyXL/AlternateContent.html">AlternateContent</a></code></li><li><code><a href="../RubyXL/AlternateUrls.html">AlternateUrls</a></code></li><li><code><a href="../RubyXL/Authors.html">Authors</a></code></li><li><code><a href="../RubyXL/AutoFilter.html">AutoFilter</a></code></li><li><code><a href="../RubyXL/AutoFilterColumn.html">AutoFilterColumn</a></code></li><li><code><a href="../RubyXL/BinaryImageFile.html">BinaryImageFile</a></code></li><li><code><a href="../RubyXL/BodyProperties.html">BodyProperties</a></code></li><li><code><a href="../RubyXL/BooleanNode.html">BooleanNode</a></code></li><li><code><a href="../RubyXL/BooleanValue.html">BooleanValue</a></code></li><li><code><a href="../RubyXL/Border.html">Border</a></code></li><li><code><a href="../RubyXL/BorderEdge.html">BorderEdge</a></code></li><li><code><a href="../RubyXL/Borders.html">Borders</a></code></li><li><code><a href="../RubyXL/Break.html">Break</a></code></li><li><code><a href="../RubyXL/BreakList.html">BreakList</a></code></li><li><code><a href="../RubyXL/CT_AdjPoint2D.html">CT_AdjPoint2D</a></code></li><li><code><a href="../RubyXL/CT_AlphaBiLevelEffect.html">CT_AlphaBiLevelEffect</a></code></li><li><code><a href="../RubyXL/CT_AlphaModulateEffect.html">CT_AlphaModulateEffect</a></code></li><li><code><a href="../RubyXL/CT_AlphaModulateFixedEffect.html">CT_AlphaModulateFixedEffect</a></code></li><li><code><a href="../RubyXL/CT_AlphaOutsetEffect.html">CT_AlphaOutsetEffect</a></code></li><li><code><a href="../RubyXL/CT_AlphaReplaceEffect.html">CT_AlphaReplaceEffect</a></code></li><li><code><a href="../RubyXL/CT_Backdrop.html">CT_Backdrop</a></code></li><li><code><a href="../RubyXL/CT_Bevel.html">CT_Bevel</a></code></li><li><code><a href="../RubyXL/CT_BiLevelEffect.html">CT_BiLevelEffect</a></code></li><li><code><a href="../RubyXL/CT_BlendEffect.html">CT_BlendEffect</a></code></li><li><code><a href="../RubyXL/CT_Blip.html">CT_Blip</a></code></li><li><code><a href="../RubyXL/CT_BlipFillProperties.html">CT_BlipFillProperties</a></code></li><li><code><a href="../RubyXL/CT_BlurEffect.html">CT_BlurEffect</a></code></li><li><code><a href="../RubyXL/CT_Camera.html">CT_Camera</a></code></li><li><code><a href="../RubyXL/CT_Color.html">CT_Color</a></code></li><li><code><a href="../RubyXL/CT_ColorChangeEffect.html">CT_ColorChangeEffect</a></code></li><li><code><a href="../RubyXL/CT_ColorMapping.html">CT_ColorMapping</a></code></li><li><code><a href="../RubyXL/CT_ColorScheme.html">CT_ColorScheme</a></code></li><li><code><a href="../RubyXL/CT_ColorSchemeAndMapping.html">CT_ColorSchemeAndMapping</a></code></li><li><code><a href="../RubyXL/CT_ConnectionSite.html">CT_ConnectionSite</a></code></li><li><code><a href="../RubyXL/CT_ConnectionSiteList.html">CT_ConnectionSiteList</a></code></li><li><code><a href="../RubyXL/CT_DashStop.html">CT_DashStop</a></code></li><li><code><a href="../RubyXL/CT_DashStopList.html">CT_DashStopList</a></code></li><li><code><a href="../RubyXL/CT_DefaultShapeDefinition.html">CT_DefaultShapeDefinition</a></code></li><li><code><a href="../RubyXL/CT_DuotoneEffect.html">CT_DuotoneEffect</a></code></li><li><code><a href="../RubyXL/CT_EffectContainer.html">CT_EffectContainer</a></code></li><li><code><a href="../RubyXL/CT_EffectList.html">CT_EffectList</a></code></li><li><code><a href="../RubyXL/CT_EffectReference.html">CT_EffectReference</a></code></li><li><code><a href="../RubyXL/CT_EffectStyleItem.html">CT_EffectStyleItem</a></code></li><li><code><a href="../RubyXL/CT_EffectStyleList.html">CT_EffectStyleList</a></code></li><li><code><a href="../RubyXL/CT_EmbeddedWAVAudioFile.html">CT_EmbeddedWAVAudioFile</a></code></li><li><code><a href="../RubyXL/CT_FillEffect.html">CT_FillEffect</a></code></li><li><code><a href="../RubyXL/CT_FillOverlayEffect.html">CT_FillOverlayEffect</a></code></li><li><code><a href="../RubyXL/CT_FillStyleList.html">CT_FillStyleList</a></code></li><li><code><a href="../RubyXL/CT_FlatText.html">CT_FlatText</a></code></li><li><code><a href="../RubyXL/CT_FontCollection.html">CT_FontCollection</a></code></li><li><code><a href="../RubyXL/CT_FontReference.html">CT_FontReference</a></code></li><li><code><a href="../RubyXL/CT_GeomGuideList.html">CT_GeomGuideList</a></code></li><li><code><a href="../RubyXL/CT_GlowEffect.html">CT_GlowEffect</a></code></li><li><code><a href="../RubyXL/CT_GradientFillProperties.html">CT_GradientFillProperties</a></code></li><li><code><a href="../RubyXL/CT_GradientStop.html">CT_GradientStop</a></code></li><li><code><a href="../RubyXL/CT_GradientStopList.html">CT_GradientStopList</a></code></li><li><code><a href="../RubyXL/CT_HSLEffect.html">CT_HSLEffect</a></code></li><li><code><a href="../RubyXL/CT_HslColor.html">CT_HslColor</a></code></li><li><code><a href="../RubyXL/CT_Hyperlink.html">CT_Hyperlink</a></code></li><li><code><a href="../RubyXL/CT_InnerShadowEffect.html">CT_InnerShadowEffect</a></code></li><li><code><a href="../RubyXL/CT_LightRig.html">CT_LightRig</a></code></li><li><code><a href="../RubyXL/CT_LineEndProperties.html">CT_LineEndProperties</a></code></li><li><code><a href="../RubyXL/CT_LineJoinMiterProperties.html">CT_LineJoinMiterProperties</a></code></li><li><code><a href="../RubyXL/CT_LineProperties.html">CT_LineProperties</a></code></li><li><code><a href="../RubyXL/CT_LineStyleList.html">CT_LineStyleList</a></code></li><li><code><a href="../RubyXL/CT_LinearShadeProperties.html">CT_LinearShadeProperties</a></code></li><li><code><a href="../RubyXL/CT_LuminanceEffect.html">CT_LuminanceEffect</a></code></li><li><code><a href="../RubyXL/CT_ObjectStyleDefaults.html">CT_ObjectStyleDefaults</a></code></li><li><code><a href="../RubyXL/CT_OuterShadowEffect.html">CT_OuterShadowEffect</a></code></li><li><code><a href="../RubyXL/CT_Path2D.html">CT_Path2D</a></code></li><li><code><a href="../RubyXL/CT_Path2DArcTo.html">CT_Path2DArcTo</a></code></li><li><code><a href="../RubyXL/CT_Path2DCubicBezierTo.html">CT_Path2DCubicBezierTo</a></code></li><li><code><a href="../RubyXL/CT_Path2DList.html">CT_Path2DList</a></code></li><li><code><a href="../RubyXL/CT_Path2DQuadBezierTo.html">CT_Path2DQuadBezierTo</a></code></li><li><code><a href="../RubyXL/CT_Path2DTo.html">CT_Path2DTo</a></code></li><li><code><a href="../RubyXL/CT_PathShadeProperties.html">CT_PathShadeProperties</a></code></li><li><code><a href="../RubyXL/CT_PatternFillProperties.html">CT_PatternFillProperties</a></code></li><li><code><a href="../RubyXL/CT_Point3D.html">CT_Point3D</a></code></li><li><code><a href="../RubyXL/CT_PolarAdjustHandle.html">CT_PolarAdjustHandle</a></code></li><li><code><a href="../RubyXL/CT_PresetColor.html">CT_PresetColor</a></code></li><li><code><a href="../RubyXL/CT_PresetLineDashProperties.html">CT_PresetLineDashProperties</a></code></li><li><code><a href="../RubyXL/CT_PresetShadowEffect.html">CT_PresetShadowEffect</a></code></li><li><code><a href="../RubyXL/CT_PresetTextShape.html">CT_PresetTextShape</a></code></li><li><code><a href="../RubyXL/CT_ReflectionEffect.html">CT_ReflectionEffect</a></code></li><li><code><a href="../RubyXL/CT_RelativeOffsetEffect.html">CT_RelativeOffsetEffect</a></code></li><li><code><a href="../RubyXL/CT_RelativeRect.html">CT_RelativeRect</a></code></li><li><code><a href="../RubyXL/CT_SRgbColor.html">CT_SRgbColor</a></code></li><li><code><a href="../RubyXL/CT_ScRgbColor.html">CT_ScRgbColor</a></code></li><li><code><a href="../RubyXL/CT_Scene3D.html">CT_Scene3D</a></code></li><li><code><a href="../RubyXL/CT_SchemeColor.html">CT_SchemeColor</a></code></li><li><code><a href="../RubyXL/CT_Shape3D.html">CT_Shape3D</a></code></li><li><code><a href="../RubyXL/CT_ShapeStyle.html">CT_ShapeStyle</a></code></li><li><code><a href="../RubyXL/CT_SoftEdgesEffect.html">CT_SoftEdgesEffect</a></code></li><li><code><a href="../RubyXL/CT_SphereCoords.html">CT_SphereCoords</a></code></li><li><code><a href="../RubyXL/CT_StretchInfoProperties.html">CT_StretchInfoProperties</a></code></li><li><code><a href="../RubyXL/CT_StyleMatrix.html">CT_StyleMatrix</a></code></li><li><code><a href="../RubyXL/CT_StyleMatrixReference.html">CT_StyleMatrixReference</a></code></li><li><code><a href="../RubyXL/CT_SupplementalFont.html">CT_SupplementalFont</a></code></li><li><code><a href="../RubyXL/CT_SystemColor.html">CT_SystemColor</a></code></li><li><code><a href="../RubyXL/CT_TextAutonumberBullet.html">CT_TextAutonumberBullet</a></code></li><li><code><a href="../RubyXL/CT_TextBlipBullet.html">CT_TextBlipBullet</a></code></li><li><code><a href="../RubyXL/CT_TextCharBullet.html">CT_TextCharBullet</a></code></li><li><code><a href="../RubyXL/CT_TextCharacterProperties.html">CT_TextCharacterProperties</a></code></li><li><code><a href="../RubyXL/CT_TextFont.html">CT_TextFont</a></code></li><li><code><a href="../RubyXL/CT_TextListStyle.html">CT_TextListStyle</a></code></li><li><code><a href="../RubyXL/CT_TextNormalAutofit.html">CT_TextNormalAutofit</a></code></li><li><code><a href="../RubyXL/CT_TextParagraphProperties.html">CT_TextParagraphProperties</a></code></li><li><code><a href="../RubyXL/CT_TextSpacing.html">CT_TextSpacing</a></code></li><li><code><a href="../RubyXL/CT_TextTabStop.html">CT_TextTabStop</a></code></li><li><code><a href="../RubyXL/CT_TextTabStopList.html">CT_TextTabStopList</a></code></li><li><code><a href="../RubyXL/CT_TileInfoProperties.html">CT_TileInfoProperties</a></code></li><li><code><a href="../RubyXL/CT_TintEffect.html">CT_TintEffect</a></code></li><li><code><a href="../RubyXL/CT_Transform2D.html">CT_Transform2D</a></code></li><li><code><a href="../RubyXL/CT_TransformEffect.html">CT_TransformEffect</a></code></li><li><code><a href="../RubyXL/CT_Vector3D.html">CT_Vector3D</a></code></li><li><code><a href="../RubyXL/CT_XYAdjustHandle.html">CT_XYAdjustHandle</a></code></li><li><code><a href="../RubyXL/CalculationChain.html">CalculationChain</a></code></li><li><code><a href="../RubyXL/CalculationChainCell.html">CalculationChainCell</a></code></li><li><code><a href="../RubyXL/CalculationProperties.html">CalculationProperties</a></code></li><li><code><a href="../RubyXL/Cell.html">Cell</a></code></li><li><code><a href="../RubyXL/CellConvenienceMethods.html">CellConvenienceMethods</a></code></li><li><code><a href="../RubyXL/CellExt.html">CellExt</a></code></li><li><code><a href="../RubyXL/CellSmartTag.html">CellSmartTag</a></code></li><li><code><a href="../RubyXL/CellSmartTagProperty.html">CellSmartTagProperty</a></code></li><li><code><a href="../RubyXL/CellSmartTags.html">CellSmartTags</a></code></li><li><code><a href="../RubyXL/CellStyle.html">CellStyle</a></code></li><li><code><a href="../RubyXL/CellStyleXFs.html">CellStyleXFs</a></code></li><li><code><a href="../RubyXL/CellStyles.html">CellStyles</a></code></li><li><code><a href="../RubyXL/CellValue.html">CellValue</a></code></li><li><code><a href="../RubyXL/CellWatch.html">CellWatch</a></code></li><li><code><a href="../RubyXL/CellWatches.html">CellWatches</a></code></li><li><code><a href="../RubyXL/CellXFs.html">CellXFs</a></code></li><li><code><a href="../RubyXL/ChartColorsFile.html">ChartColorsFile</a></code></li><li><code><a href="../RubyXL/ChartFile.html">ChartFile</a></code></li><li><code><a href="../RubyXL/ChartStyleFile.html">ChartStyleFile</a></code></li><li><code><a href="../RubyXL/ChartUserShapesFile.html">ChartUserShapesFile</a></code></li><li><code><a href="../RubyXL/Chartsheet.html">Chartsheet</a></code></li><li><code><a href="../RubyXL/ChartsheetPageSetup.html">ChartsheetPageSetup</a></code></li><li><code><a href="../RubyXL/ChartsheetProperties.html">ChartsheetProperties</a></code></li><li><code><a href="../RubyXL/ChartsheetProtection.html">ChartsheetProtection</a></code></li><li><code><a href="../RubyXL/ChartsheetView.html">ChartsheetView</a></code></li><li><code><a href="../RubyXL/ChartsheetViews.html">ChartsheetViews</a></code></li><li><code><a href="../RubyXL/Color.html">Color</a></code></li><li><details><summary><code><a href="../RubyXL/ColorConvenienceClasses.html">ColorConvenienceClasses</a></code></summary><ul class="link-list nav-list"><li><code><a href="../RubyXL/ColorConvenienceClasses/HlsColor.html">HlsColor</a></code></li><li><code><a href="../RubyXL/ColorConvenienceClasses/RgbColor.html">RgbColor</a></code></li></ul></details></li><li><code><a href="../RubyXL/ColorConvenienceMethods.html">ColorConvenienceMethods</a></code></li><li><code><a href="../RubyXL/ColorFilter.html">ColorFilter</a></code></li><li><code><a href="../RubyXL/ColorScale.html">ColorScale</a></code></li><li><code><a href="../RubyXL/ColorSet.html">ColorSet</a></code></li><li><code><a href="../RubyXL/Colors.html">Colors</a></code></li><li><code><a href="../RubyXL/ColumnRange.html">ColumnRange</a></code></li><li><code><a href="../RubyXL/ColumnRanges.html">ColumnRanges</a></code></li><li><code><a href="../RubyXL/Comment.html">Comment</a></code></li><li><code><a href="../RubyXL/CommentList.html">CommentList</a></code></li><li><code><a href="../RubyXL/CommentsFile.html">CommentsFile</a></code></li><li><code><a href="../RubyXL/ConditionalFormatValue.html">ConditionalFormatValue</a></code></li><li><code><a href="../RubyXL/ConditionalFormatting.html">ConditionalFormatting</a></code></li><li><code><a href="../RubyXL/ConditionalFormattingRule.html">ConditionalFormattingRule</a></code></li><li><code><a href="../RubyXL/Connection.html">Connection</a></code></li><li><code><a href="../RubyXL/ConnectionTable.html">ConnectionTable</a></code></li><li><code><a href="../RubyXL/ConnectionTables.html">ConnectionTables</a></code></li><li><code><a href="../RubyXL/ConnectionTextField.html">ConnectionTextField</a></code></li><li><code><a href="../RubyXL/ConnectionTextFields.html">ConnectionTextFields</a></code></li><li><code><a href="../RubyXL/Connections.html">Connections</a></code></li><li><code><a href="../RubyXL/ContentTypeDefault.html">ContentTypeDefault</a></code></li><li><code><a href="../RubyXL/ContentTypeOverride.html">ContentTypeOverride</a></code></li><li><code><a href="../RubyXL/ContentTypes.html">ContentTypes</a></code></li><li><code><a href="../RubyXL/ControlPropertiesFile.html">ControlPropertiesFile</a></code></li><li><code><a href="../RubyXL/CorePropertiesFile.html">CorePropertiesFile</a></code></li><li><code><a href="../RubyXL/CustomColor.html">CustomColor</a></code></li><li><code><a href="../RubyXL/CustomColorList.html">CustomColorList</a></code></li><li><code><a href="../RubyXL/CustomFilter.html">CustomFilter</a></code></li><li><code><a href="../RubyXL/CustomFilters.html">CustomFilters</a></code></li><li><code><a href="../RubyXL/CustomGeometry.html">CustomGeometry</a></code></li><li><code><a href="../RubyXL/CustomProperties.html">CustomProperties</a></code></li><li><code><a href="../RubyXL/CustomPropertiesFile.html">CustomPropertiesFile</a></code></li><li><code><a href="../RubyXL/CustomProperty.html">CustomProperty</a></code></li><li><code><a href="../RubyXL/CustomPropertyFile.html">CustomPropertyFile</a></code></li><li><code><a href="../RubyXL/CustomSheetView.html">CustomSheetView</a></code></li><li><code><a href="../RubyXL/CustomSheetViews.html">CustomSheetViews</a></code></li><li><code><a href="../RubyXL/CustomWorkbookView.html">CustomWorkbookView</a></code></li><li><code><a href="../RubyXL/CustomWorkbookViews.html">CustomWorkbookViews</a></code></li><li><code><a href="../RubyXL/CustomXMLFile.html">CustomXMLFile</a></code></li><li><code><a href="../RubyXL/DXF.html">DXF</a></code></li><li><code><a href="../RubyXL/DXFs.html">DXFs</a></code></li><li><code><a href="../RubyXL/DataBar.html">DataBar</a></code></li><li><code><a href="../RubyXL/DataConsolidate.html">DataConsolidate</a></code></li><li><code><a href="../RubyXL/DataConsolidationReference.html">DataConsolidationReference</a></code></li><li><code><a href="../RubyXL/DataConsolidationReferences.html">DataConsolidationReferences</a></code></li><li><code><a href="../RubyXL/DataType.html">DataType</a></code></li><li><code><a href="../RubyXL/DataValidation.html">DataValidation</a></code></li><li><code><a href="../RubyXL/DataValidations.html">DataValidations</a></code></li><li><code><a href="../RubyXL/DateGroupItem.html">DateGroupItem</a></code></li><li><code><a href="../RubyXL/DefinedName.html">DefinedName</a></code></li><li><code><a href="../RubyXL/DefinedNameExt.html">DefinedNameExt</a></code></li><li><code><a href="../RubyXL/DefinedNames.html">DefinedNames</a></code></li><li><code><a href="../RubyXL/DefinedNamesExt.html">DefinedNamesExt</a></code></li><li><code><a href="../RubyXL/DocumentPropertiesFile.html">DocumentPropertiesFile</a></code></li><li><code><a href="../RubyXL/DrawingFile.html">DrawingFile</a></code></li><li><code><a href="../RubyXL/DynamicFilter.html">DynamicFilter</a></code></li><li><code><a href="../RubyXL/EmbeddedControl.html">EmbeddedControl</a></code></li><li><code><a href="../RubyXL/EmbeddedControls.html">EmbeddedControls</a></code></li><li><code><a href="../RubyXL/Extension.html">Extension</a></code></li><li><code><a href="../RubyXL/ExtensionStorageArea.html">ExtensionStorageArea</a></code></li><li><code><a href="../RubyXL/Extents.html">Extents</a></code></li><li><code><a href="../RubyXL/ExternalBook.html">ExternalBook</a></code></li><li><code><a href="../RubyXL/ExternalLinksFile.html">ExternalLinksFile</a></code></li><li><code><a href="../RubyXL/ExternalReference.html">ExternalReference</a></code></li><li><code><a href="../RubyXL/ExternalReferences.html">ExternalReferences</a></code></li><li><code><a href="../RubyXL/ExtraColorSchemeList.html">ExtraColorSchemeList</a></code></li><li><code><a href="../RubyXL/FieldItem.html">FieldItem</a></code></li><li><code><a href="../RubyXL/FileRecoveryProperties.html">FileRecoveryProperties</a></code></li><li><code><a href="../RubyXL/FileSharing.html">FileSharing</a></code></li><li><code><a href="../RubyXL/FileVersion.html">FileVersion</a></code></li><li><code><a href="../RubyXL/Fill.html">Fill</a></code></li><li><code><a href="../RubyXL/Fills.html">Fills</a></code></li><li><code><a href="../RubyXL/FilterContainer.html">FilterContainer</a></code></li><li><code><a href="../RubyXL/FloatNode.html">FloatNode</a></code></li><li><code><a href="../RubyXL/FloatValue.html">FloatValue</a></code></li><li><code><a href="../RubyXL/Font.html">Font</a></code></li><li><code><a href="../RubyXL/FontConvenienceMethods.html">FontConvenienceMethods</a></code></li><li><code><a href="../RubyXL/FontScheme.html">FontScheme</a></code></li><li><code><a href="../RubyXL/Fonts.html">Fonts</a></code></li><li><code><a href="../RubyXL/Formula.html">Formula</a></code></li><li><code><a href="../RubyXL/FunctionGroup.html">FunctionGroup</a></code></li><li><code><a href="../RubyXL/FunctionGroups.html">FunctionGroups</a></code></li><li><code><a href="../RubyXL/GenericStorageObject.html">GenericStorageObject</a></code></li><li><code><a href="../RubyXL/GradientFill.html">GradientFill</a></code></li><li><code><a href="../RubyXL/HeaderFooterSettings.html">HeaderFooterSettings</a></code></li><li><code><a href="../RubyXL/Hyperlink.html">Hyperlink</a></code></li><li><code><a href="../RubyXL/HyperlinkRelFile.html">HyperlinkRelFile</a></code></li><li><code><a href="../RubyXL/Hyperlinks.html">Hyperlinks</a></code></li><li><code><a href="../RubyXL/IconFilter.html">IconFilter</a></code></li><li><code><a href="../RubyXL/IconSet.html">IconSet</a></code></li><li><code><a href="../RubyXL/IgnoredError.html">IgnoredError</a></code></li><li><code><a href="../RubyXL/IgnoredErrors.html">IgnoredErrors</a></code></li><li><code><a href="../RubyXL/IndexedColors.html">IndexedColors</a></code></li><li><code><a href="../RubyXL/InputCells.html">InputCells</a></code></li><li><code><a href="../RubyXL/IntegerNode.html">IntegerNode</a></code></li><li><code><a href="../RubyXL/IntegerValue.html">IntegerValue</a></code></li><li><code><a href="../RubyXL/LegacyCell.html">LegacyCell</a></code></li><li><code><a href="../RubyXL/LegacyWorksheet.html">LegacyWorksheet</a></code></li><li><code><a href="../RubyXL/MRUColors.html">MRUColors</a></code></li><li><code><a href="../RubyXL/MacrosFile.html">MacrosFile</a></code></li><li><code><a href="../RubyXL/MergedCell.html">MergedCell</a></code></li><li><code><a href="../RubyXL/MergedCells.html">MergedCells</a></code></li><li><code><a href="../RubyXL/NumFmt.html">NumFmt</a></code></li><li><code><a href="../RubyXL/NumberFormat.html">NumberFormat</a></code></li><li><code><a href="../RubyXL/NumberFormats.html">NumberFormats</a></code></li><li><code><a href="../RubyXL/OLEObject.html">OLEObject</a></code></li><li><code><a href="../RubyXL/OLEObjectFile.html">OLEObjectFile</a></code></li><li><code><a href="../RubyXL/OLEObjects.html">OLEObjects</a></code></li><li><code><a href="../RubyXL/OLESize.html">OLESize</a></code></li><li><code><a href="../RubyXL/OOXMLContainerObject.html">OOXMLContainerObject</a></code></li><li><code><a href="../RubyXL/OOXMLIgnored.html">OOXMLIgnored</a></code></li><li><code><a href="../RubyXL/OOXMLObject.html">OOXMLObject</a></code></li><li><code><a href="../RubyXL/OOXMLObjectClassMethods.html">OOXMLObjectClassMethods</a></code></li><li><code><a href="../RubyXL/OOXMLObjectInstanceMethods.html">OOXMLObjectInstanceMethods</a></code></li><li><code><a href="../RubyXL/OOXMLRelationshipsFile.html">OOXMLRelationshipsFile</a></code></li><li><code><a href="../RubyXL/OOXMLTopLevelObject.html">OOXMLTopLevelObject</a></code></li><li><code><a href="../RubyXL/OdbcOleDbProperties.html">OdbcOleDbProperties</a></code></li><li><code><a href="../RubyXL/Offset.html">Offset</a></code></li><li><code><a href="../RubyXL/OlapProperties.html">OlapProperties</a></code></li><li><code><a href="../RubyXL/OleItem.html">OleItem</a></code></li><li><code><a href="../RubyXL/OleItems.html">OleItems</a></code></li><li><code><a href="../RubyXL/OleLink.html">OleLink</a></code></li><li><code><a href="../RubyXL/OutlineProperties.html">OutlineProperties</a></code></li><li><code><a href="../RubyXL/PageMargins.html">PageMargins</a></code></li><li><code><a href="../RubyXL/PageSetup.html">PageSetup</a></code></li><li><code><a href="../RubyXL/PageSetupProperties.html">PageSetupProperties</a></code></li><li><code><a href="../RubyXL/Pane.html">Pane</a></code></li><li><code><a href="../RubyXL/Parser.html">Parser</a></code></li><li><code><a href="../RubyXL/PatternFill.html">PatternFill</a></code></li><li><code><a href="../RubyXL/PersonMetadata.html">PersonMetadata</a></code></li><li><code><a href="../RubyXL/PhoneticProperties.html">PhoneticProperties</a></code></li><li><code><a href="../RubyXL/PhoneticRun.html">PhoneticRun</a></code></li><li><code><a href="../RubyXL/PivotArea.html">PivotArea</a></code></li><li><code><a href="../RubyXL/PivotCache.html">PivotCache</a></code></li><li><code><a href="../RubyXL/PivotCacheDefinitionFile.html">PivotCacheDefinitionFile</a></code></li><li><code><a href="../RubyXL/PivotCacheRecordsFile.html">PivotCacheRecordsFile</a></code></li><li><code><a href="../RubyXL/PivotCaches.html">PivotCaches</a></code></li><li><code><a href="../RubyXL/PivotReference.html">PivotReference</a></code></li><li><code><a href="../RubyXL/PivotReferences.html">PivotReferences</a></code></li><li><code><a href="../RubyXL/PivotSelection.html">PivotSelection</a></code></li><li><code><a href="../RubyXL/PivotTableFile.html">PivotTableFile</a></code></li><li><code><a href="../RubyXL/PresetGeometry.html">PresetGeometry</a></code></li><li><code><a href="../RubyXL/PrintOptions.html">PrintOptions</a></code></li><li><code><a href="../RubyXL/PrinterSettingsFile.html">PrinterSettingsFile</a></code></li><li><code><a href="../RubyXL/ProtectedRange.html">ProtectedRange</a></code></li><li><code><a href="../RubyXL/ProtectedRanges.html">ProtectedRanges</a></code></li><li><code><a href="../RubyXL/Protection.html">Protection</a></code></li><li><code><a href="../RubyXL/QueryParameter.html">QueryParameter</a></code></li><li><code><a href="../RubyXL/QueryParameters.html">QueryParameters</a></code></li><li><code><a href="../RubyXL/QueryTable.html">QueryTable</a></code></li><li><code><a href="../RubyXL/QueryTableDeletedField.html">QueryTableDeletedField</a></code></li><li><code><a href="../RubyXL/QueryTableDeletedFields.html">QueryTableDeletedFields</a></code></li><li><code><a href="../RubyXL/QueryTableField.html">QueryTableField</a></code></li><li><code><a href="../RubyXL/QueryTableFields.html">QueryTableFields</a></code></li><li><code><a href="../RubyXL/QueryTableRefresh.html">QueryTableRefresh</a></code></li><li><code><a href="../RubyXL/RID.html">RID</a></code></li><li><code><a href="../RubyXL/RawOOXML.html">RawOOXML</a></code></li><li><code><a href="../RubyXL/Reference.html">Reference</a></code></li><li><code><a href="../RubyXL/Relationship.html">Relationship</a></code></li><li><details><summary><code><a href="../RubyXL/RelationshipSupport.html">RelationshipSupport</a></code></summary><ul class="link-list nav-list"><li><code><a href="../RubyXL/RelationshipSupport/ClassMehods.html">ClassMehods</a></code></li></ul></details></li><li><code><a href="../RubyXL/RevisionPointer.html">RevisionPointer</a></code></li><li><code><a href="../RubyXL/RichText.html">RichText</a></code></li><li><code><a href="../RubyXL/RichTextRun.html">RichTextRun</a></code></li><li><code><a href="../RubyXL/Row.html">Row</a></code></li><li><code><a href="../RubyXL/RowExt.html">RowExt</a></code></li><li><code><a href="../RubyXL/RunProperties.html">RunProperties</a></code></li><li><code><a href="../RubyXL/Scenario.html">Scenario</a></code></li><li><code><a href="../RubyXL/Scenarios.html">Scenarios</a></code></li><li><code><a href="../RubyXL/Selection.html">Selection</a></code></li><li><code><a href="../RubyXL/ShapeGuide.html">ShapeGuide</a></code></li><li><code><a href="../RubyXL/ShapeTextRectangle.html">ShapeTextRectangle</a></code></li><li><code><a href="../RubyXL/SharedStringsTable.html">SharedStringsTable</a></code></li><li><code><a href="../RubyXL/Sheet.html">Sheet</a></code></li><li><code><a href="../RubyXL/SheetCalculationProperties.html">SheetCalculationProperties</a></code></li><li><code><a href="../RubyXL/SheetData.html">SheetData</a></code></li><li><code><a href="../RubyXL/SheetDataExt.html">SheetDataExt</a></code></li><li><code><a href="../RubyXL/SheetDataSet.html">SheetDataSet</a></code></li><li><code><a href="../RubyXL/SheetMetadata.html">SheetMetadata</a></code></li><li><code><a href="../RubyXL/SheetName.html">SheetName</a></code></li><li><code><a href="../RubyXL/SheetNames.html">SheetNames</a></code></li><li><code><a href="../RubyXL/Sheets.html">Sheets</a></code></li><li><code><a href="../RubyXL/SlicerCacheFile.html">SlicerCacheFile</a></code></li><li><code><a href="../RubyXL/SlicerFile.html">SlicerFile</a></code></li><li><code><a href="../RubyXL/SmartTagProperties.html">SmartTagProperties</a></code></li><li><code><a href="../RubyXL/SmartTagType.html">SmartTagType</a></code></li><li><code><a href="../RubyXL/SmartTagTypes.html">SmartTagTypes</a></code></li><li><code><a href="../RubyXL/SmartTags.html">SmartTags</a></code></li><li><code><a href="../RubyXL/SortCondition.html">SortCondition</a></code></li><li><code><a href="../RubyXL/SortState.html">SortState</a></code></li><li><code><a href="../RubyXL/Sqref.html">Sqref</a></code></li><li><code><a href="../RubyXL/Stop.html">Stop</a></code></li><li><code><a href="../RubyXL/StringNode.html">StringNode</a></code></li><li><code><a href="../RubyXL/StringNodeW3C.html">StringNodeW3C</a></code></li><li><code><a href="../RubyXL/StringValue.html">StringValue</a></code></li><li><code><a href="../RubyXL/Stylesheet.html">Stylesheet</a></code></li><li><code><a href="../RubyXL/TableFile.html">TableFile</a></code></li><li><code><a href="../RubyXL/TableParts.html">TableParts</a></code></li><li><code><a href="../RubyXL/TableStyle.html">TableStyle</a></code></li><li><code><a href="../RubyXL/TableStyles.html">TableStyles</a></code></li><li><code><a href="../RubyXL/Text.html">Text</a></code></li><li><code><a href="../RubyXL/TextImportSettings.html">TextImportSettings</a></code></li><li><code><a href="../RubyXL/Theme.html">Theme</a></code></li><li><code><a href="../RubyXL/ThemeElements.html">ThemeElements</a></code></li><li><code><a href="../RubyXL/ThumbnailFile.html">ThumbnailFile</a></code></li><li><code><a href="../RubyXL/Top10.html">Top10</a></code></li><li><code><a href="../RubyXL/VMLDrawingFile.html">VMLDrawingFile</a></code></li><li><code><a href="../RubyXL/Variant.html">Variant</a></code></li><li><code><a href="../RubyXL/Vector.html">Vector</a></code></li><li><code><a href="../RubyXL/VectorValue.html">VectorValue</a></code></li><li><code><a href="../RubyXL/VisualProperties.html">VisualProperties</a></code></li><li><code><a href="../RubyXL/WebPublishObject.html">WebPublishObject</a></code></li><li><code><a href="../RubyXL/WebPublishObjects.html">WebPublishObjects</a></code></li><li><code><a href="../RubyXL/WebPublishingItem.html">WebPublishingItem</a></code></li><li><code><a href="../RubyXL/WebPublishingItems.html">WebPublishingItems</a></code></li><li><code><a href="../RubyXL/WebPublishingProperties.html">WebPublishingProperties</a></code></li><li><code><a href="../RubyXL/WebQueryProperties.html">WebQueryProperties</a></code></li><li><code><a href="../RubyXL/Workbook.html">Workbook</a></code></li><li><code><a href="../RubyXL/WorkbookConvenienceMethods.html">WorkbookConvenienceMethods</a></code></li><li><code><a href="../RubyXL/WorkbookProperties.html">WorkbookProperties</a></code></li><li><code><a href="../RubyXL/WorkbookProtection.html">WorkbookProtection</a></code></li><li><code><a href="../RubyXL/WorkbookRoot.html">WorkbookRoot</a></code></li><li><code><a href="../RubyXL/WorkbookView.html">WorkbookView</a></code></li><li><code><a href="../RubyXL/WorkbookViews.html">WorkbookViews</a></code></li><li><code><a href="../RubyXL/Worksheet.html">Worksheet</a></code></li><li><code><a href="../RubyXL/WorksheetConvenienceMethods.html">WorksheetConvenienceMethods</a></code></li><li><code><a href="../RubyXL/WorksheetDimensions.html">WorksheetDimensions</a></code></li><li><code><a href="../RubyXL/WorksheetFormatProperties.html">WorksheetFormatProperties</a></code></li><li><code><a href="../RubyXL/WorksheetProperties.html">WorksheetProperties</a></code></li><li><code><a href="../RubyXL/WorksheetProtection.html">WorksheetProtection</a></code></li><li><code><a href="../RubyXL/WorksheetView.html">WorksheetView</a></code></li><li><code><a href="../RubyXL/WorksheetViews.html">WorksheetViews</a></code></li><li><code><a href="../RubyXL/XF.html">XF</a></code></li></ul></details></li></ul>
|
|
535
|
-
</details>
|
|
536
|
-
</div>
|
|
537
|
-
|
|
538
|
-
</nav>
|
|
539
|
-
|
|
540
|
-
<main role="main" aria-labelledby="module-rubyxl-cellconveniencemethods">
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
<ol role="navigation" aria-label="Breadcrumb navigation" class="breadcrumb">
|
|
544
|
-
|
|
545
|
-
<li>
|
|
546
|
-
|
|
547
|
-
<a href="../RubyXL.html">RubyXL</a><span>::</span>
|
|
548
|
-
|
|
549
|
-
</li>
|
|
550
|
-
|
|
551
|
-
<li>
|
|
552
|
-
|
|
553
|
-
<span>CellConvenienceMethods</span>
|
|
554
|
-
|
|
555
|
-
</li>
|
|
556
|
-
|
|
557
|
-
</ol>
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
<span id="module-RubyXL::CellConvenienceMethods" class="legacy-anchor"></span>
|
|
561
|
-
<h1 id="module-rubyxl-cellconveniencemethods" class="anchor-link module">
|
|
562
|
-
module RubyXL::CellConvenienceMethods
|
|
563
|
-
</h1>
|
|
564
|
-
|
|
565
|
-
<section class="description">
|
|
566
|
-
|
|
567
|
-
</section>
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
<span id="5Buntitled-5D" class="legacy-anchor"></span>
|
|
571
|
-
<section class="documentation-section anchor-link">
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
<section class="constants-list">
|
|
578
|
-
<header>
|
|
579
|
-
<h3 id="untitled-constants"><a href="#untitled-constants">Constants</a></h3>
|
|
580
|
-
</header>
|
|
581
|
-
<dl>
|
|
582
|
-
|
|
583
|
-
<dt id="MAX_HYPERLINKS_PER_WORKSHEET">MAX_HYPERLINKS_PER_WORKSHEET</dt>
|
|
584
|
-
|
|
585
|
-
<dd>
|
|
586
|
-
|
|
587
|
-
<p>Excel has a hard limit of 65’530 hyperlinks per <a href="Worksheet.html"><code>Worksheet</code></a></p>
|
|
588
|
-
</dd>
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
</dl>
|
|
592
|
-
</section>
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
<section id="public-instance-untitled-method-details" class="method-section anchor-link">
|
|
608
|
-
<header>
|
|
609
|
-
<h3 id="public-instance-untitled-methods"><a href="#public-instance-untitled-methods">Public Instance Methods</a></h3>
|
|
610
|
-
</header>
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
<div id="method-i-add_hyperlink" class="method-detail anchor-link ">
|
|
614
|
-
<div class="method-header">
|
|
615
|
-
|
|
616
|
-
<div class="method-heading">
|
|
617
|
-
<a href="#method-i-add_hyperlink" title="Link to this method">
|
|
618
|
-
<span class="method-name">add_hyperlink</span>
|
|
619
|
-
<span class="method-args">(url, tooltip = nil)</span>
|
|
620
|
-
</a>
|
|
621
|
-
</div>
|
|
622
|
-
|
|
623
|
-
</div>
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
<div class="method-controls">
|
|
627
|
-
<details class="method-source-toggle">
|
|
628
|
-
<summary>Source</summary>
|
|
629
|
-
</details>
|
|
630
|
-
</div>
|
|
631
|
-
<div class="method-source-code" id="add_hyperlink-source">
|
|
632
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 259</span>
|
|
633
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_hyperlink</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">tooltip</span> = <span class="ruby-keyword">nil</span>)
|
|
634
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">hyperlinks</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-constant">MAX_HYPERLINKS_PER_WORKSHEET</span>
|
|
635
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">RuntimeError</span>, <span class="ruby-string">"Maximum number of hyperlinks per worksheet reached"</span>
|
|
636
|
-
<span class="ruby-keyword">end</span>
|
|
637
|
-
|
|
638
|
-
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">relationship_container</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">OOXMLRelationshipsFile</span>.<span class="ruby-identifier">new</span>
|
|
639
|
-
<span class="ruby-identifier">relationships</span> = <span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">relationships</span>
|
|
640
|
-
<span class="ruby-identifier">r_id</span> = <span class="ruby-node">"rId#{relationships.size + 1}"</span>
|
|
641
|
-
<span class="ruby-identifier">relationships</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Relationship</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:id</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">r_id</span>, <span class="ruby-value">:target</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">url</span>, <span class="ruby-value">:target_mode</span> <span class="ruby-operator">=></span> <span class="ruby-string">'External'</span>,
|
|
642
|
-
<span class="ruby-value">:type</span> <span class="ruby-operator">=></span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">HyperlinkRelFile</span><span class="ruby-operator">::</span><span class="ruby-constant">REL_TYPE</span>)
|
|
643
|
-
|
|
644
|
-
<span class="ruby-identifier">hyperlink</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Hyperlink</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:ref</span> <span class="ruby-operator">=></span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">r</span>, <span class="ruby-value">:r_id</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">r_id</span>)
|
|
645
|
-
<span class="ruby-identifier">hyperlink</span>.<span class="ruby-identifier">tooltip</span> = <span class="ruby-identifier">tooltip</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">tooltip</span>
|
|
646
|
-
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">hyperlinks</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Hyperlinks</span>.<span class="ruby-identifier">new</span>
|
|
647
|
-
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">hyperlinks</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">hyperlink</span>
|
|
648
|
-
<span class="ruby-keyword">end</span></pre>
|
|
649
|
-
</div>
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
<div class="method-description">
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
</div>
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
</div>
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
<div id="method-i-add_shared_string" class="method-detail anchor-link ">
|
|
669
|
-
<div class="method-header">
|
|
670
|
-
|
|
671
|
-
<div class="method-heading">
|
|
672
|
-
<a href="#method-i-add_shared_string" title="Link to this method">
|
|
673
|
-
<span class="method-name">add_shared_string</span>
|
|
674
|
-
<span class="method-args">(str)</span>
|
|
675
|
-
</a>
|
|
676
|
-
</div>
|
|
677
|
-
|
|
678
|
-
</div>
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
<div class="method-controls">
|
|
682
|
-
<details class="method-source-toggle">
|
|
683
|
-
<summary>Source</summary>
|
|
684
|
-
</details>
|
|
685
|
-
</div>
|
|
686
|
-
<div class="method-source-code" id="add_shared_string-source">
|
|
687
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 276</span>
|
|
688
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add_shared_string</span>(<span class="ruby-identifier">str</span>)
|
|
689
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">datatype</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DataType</span><span class="ruby-operator">::</span><span class="ruby-constant">SHARED_STRING</span>
|
|
690
|
-
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">shared_strings_container</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">SharedStringsTable</span>.<span class="ruby-identifier">new</span>
|
|
691
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw_value</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">shared_strings_container</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">str</span>)
|
|
692
|
-
<span class="ruby-keyword">end</span></pre>
|
|
693
|
-
</div>
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
<div class="method-description">
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
</div>
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
</div>
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
<div id="method-i-change_border" class="method-detail anchor-link ">
|
|
713
|
-
<div class="method-header">
|
|
714
|
-
|
|
715
|
-
<div class="method-heading">
|
|
716
|
-
<a href="#method-i-change_border" title="Link to this method">
|
|
717
|
-
<span class="method-name">change_border</span>
|
|
718
|
-
<span class="method-args">(direction, weight, diagonals = nil)</span>
|
|
719
|
-
</a>
|
|
720
|
-
</div>
|
|
721
|
-
|
|
722
|
-
</div>
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
<div class="method-controls">
|
|
726
|
-
<details class="method-source-toggle">
|
|
727
|
-
<summary>Source</summary>
|
|
728
|
-
</details>
|
|
729
|
-
</div>
|
|
730
|
-
<div class="method-source-code" id="change_border-source">
|
|
731
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 74</span>
|
|
732
|
-
<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>, <span class="ruby-identifier">diagonals</span> = <span class="ruby-keyword">nil</span>)
|
|
733
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
734
|
-
<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>, <span class="ruby-identifier">diagonals</span>)
|
|
735
|
-
<span class="ruby-keyword">end</span></pre>
|
|
736
|
-
</div>
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
<div class="method-description">
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
</div>
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
</div>
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
<div id="method-i-change_border_color" class="method-detail anchor-link ">
|
|
756
|
-
<div class="method-header">
|
|
757
|
-
|
|
758
|
-
<div class="method-heading">
|
|
759
|
-
<a href="#method-i-change_border_color" title="Link to this method">
|
|
760
|
-
<span class="method-name">change_border_color</span>
|
|
761
|
-
<span class="method-args">(direction, color)</span>
|
|
762
|
-
</a>
|
|
763
|
-
</div>
|
|
764
|
-
|
|
765
|
-
</div>
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
<div class="method-controls">
|
|
769
|
-
<details class="method-source-toggle">
|
|
770
|
-
<summary>Source</summary>
|
|
771
|
-
</details>
|
|
772
|
-
</div>
|
|
773
|
-
<div class="method-source-code" id="change_border_color-source">
|
|
774
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 79</span>
|
|
775
|
-
<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>)
|
|
776
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
777
|
-
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">color</span>)
|
|
778
|
-
<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>)
|
|
779
|
-
<span class="ruby-keyword">end</span></pre>
|
|
780
|
-
</div>
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
<div class="method-description">
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
</div>
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
</div>
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
<div id="method-i-change_contents" class="method-detail anchor-link ">
|
|
800
|
-
<div class="method-header">
|
|
801
|
-
|
|
802
|
-
<div class="method-heading">
|
|
803
|
-
<a href="#method-i-change_contents" title="Link to this method">
|
|
804
|
-
<span class="method-name">change_contents</span>
|
|
805
|
-
<span class="method-args">(data, formula_expression = nil)</span>
|
|
806
|
-
</a>
|
|
807
|
-
</div>
|
|
808
|
-
|
|
809
|
-
</div>
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
<div class="method-controls">
|
|
813
|
-
<details class="method-source-toggle">
|
|
814
|
-
<summary>Source</summary>
|
|
815
|
-
</details>
|
|
816
|
-
</div>
|
|
817
|
-
<div class="method-source-code" id="change_contents-source">
|
|
818
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 6</span>
|
|
819
|
-
<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>)
|
|
820
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
821
|
-
|
|
822
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">formula_expression</span> <span class="ruby-keyword">then</span>
|
|
823
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">datatype</span> = <span class="ruby-keyword">nil</span>
|
|
824
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">formula</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Formula</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:expression</span> <span class="ruby-operator">=></span> <span class="ruby-identifier">formula_expression</span>)
|
|
825
|
-
<span class="ruby-keyword">else</span>
|
|
826
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">datatype</span> = <span class="ruby-keyword">case</span> <span class="ruby-identifier">data</span>
|
|
827
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Date</span>, <span class="ruby-constant">Time</span>, <span class="ruby-constant">Numeric</span> <span class="ruby-keyword">then</span> <span class="ruby-keyword">nil</span>
|
|
828
|
-
<span class="ruby-keyword">else</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DataType</span><span class="ruby-operator">::</span><span class="ruby-constant">RAW_STRING</span>
|
|
829
|
-
<span class="ruby-keyword">end</span>
|
|
830
|
-
<span class="ruby-keyword">end</span>
|
|
831
|
-
|
|
832
|
-
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">date_to_num</span>(<span class="ruby-identifier">data</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Date</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Time</span>)
|
|
833
|
-
|
|
834
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">raw_value</span> = <span class="ruby-identifier">data</span>
|
|
835
|
-
<span class="ruby-keyword">end</span></pre>
|
|
836
|
-
</div>
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
<div class="method-description">
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
</div>
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
</div>
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
<div id="method-i-change_fill" class="method-detail anchor-link ">
|
|
856
|
-
<div class="method-header">
|
|
857
|
-
|
|
858
|
-
<div class="method-heading">
|
|
859
|
-
<a href="#method-i-change_fill" title="Link to this method">
|
|
860
|
-
<span class="method-name">change_fill</span>
|
|
861
|
-
<span class="method-args">(rgb = 'ffffff')</span>
|
|
862
|
-
</a>
|
|
863
|
-
</div>
|
|
864
|
-
|
|
865
|
-
</div>
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
<div class="method-controls">
|
|
869
|
-
<details class="method-source-toggle">
|
|
870
|
-
<summary>Source</summary>
|
|
871
|
-
</details>
|
|
872
|
-
</div>
|
|
873
|
-
<div class="method-source-code" id="change_fill-source">
|
|
874
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 168</span>
|
|
875
|
-
<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>)
|
|
876
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
877
|
-
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">rgb</span>)
|
|
878
|
-
<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>)
|
|
879
|
-
<span class="ruby-keyword">end</span></pre>
|
|
880
|
-
</div>
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
<div class="method-description">
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
<p>Changes fill color of cell</p>
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
</div>
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
</div>
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
<div id="method-i-change_font_bold" class="method-detail anchor-link ">
|
|
900
|
-
<div class="method-header">
|
|
901
|
-
|
|
902
|
-
<div class="method-heading">
|
|
903
|
-
<a href="#method-i-change_font_bold" title="Link to this method">
|
|
904
|
-
<span class="method-name">change_font_bold</span>
|
|
905
|
-
<span class="method-args">(bolded = false)</span>
|
|
906
|
-
</a>
|
|
907
|
-
</div>
|
|
908
|
-
|
|
909
|
-
</div>
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
<div class="method-controls">
|
|
913
|
-
<details class="method-source-toggle">
|
|
914
|
-
<summary>Source</summary>
|
|
915
|
-
</details>
|
|
916
|
-
</div>
|
|
917
|
-
<div class="method-source-code" id="change_font_bold-source">
|
|
918
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 213</span>
|
|
919
|
-
<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>)
|
|
920
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
921
|
-
|
|
922
|
-
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
|
923
|
-
<span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_bold</span>(<span class="ruby-identifier">bolded</span>)
|
|
924
|
-
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
925
|
-
<span class="ruby-keyword">end</span></pre>
|
|
926
|
-
</div>
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
<div class="method-description">
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
<p>Changes font bold settings of cell</p>
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
</div>
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
</div>
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
<div id="method-i-change_font_color" class="method-detail anchor-link ">
|
|
946
|
-
<div class="method-header">
|
|
947
|
-
|
|
948
|
-
<div class="method-heading">
|
|
949
|
-
<a href="#method-i-change_font_color" title="Link to this method">
|
|
950
|
-
<span class="method-name">change_font_color</span>
|
|
951
|
-
<span class="method-args">(font_color = '000000')</span>
|
|
952
|
-
</a>
|
|
953
|
-
</div>
|
|
954
|
-
|
|
955
|
-
</div>
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
<div class="method-controls">
|
|
959
|
-
<details class="method-source-toggle">
|
|
960
|
-
<summary>Source</summary>
|
|
961
|
-
</details>
|
|
962
|
-
</div>
|
|
963
|
-
<div class="method-source-code" id="change_font_color-source">
|
|
964
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 194</span>
|
|
965
|
-
<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>)
|
|
966
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
967
|
-
<span class="ruby-constant">Color</span>.<span class="ruby-identifier">validate_color</span>(<span class="ruby-identifier">font_color</span>)
|
|
968
|
-
|
|
969
|
-
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
|
970
|
-
<span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_rgb_color</span>(<span class="ruby-identifier">font_color</span>)
|
|
971
|
-
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
972
|
-
<span class="ruby-keyword">end</span></pre>
|
|
973
|
-
</div>
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
<div class="method-description">
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
<p>Changes font color of cell</p>
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
</div>
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
</div>
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
<div id="method-i-change_font_italics" class="method-detail anchor-link ">
|
|
993
|
-
<div class="method-header">
|
|
994
|
-
|
|
995
|
-
<div class="method-heading">
|
|
996
|
-
<a href="#method-i-change_font_italics" title="Link to this method">
|
|
997
|
-
<span class="method-name">change_font_italics</span>
|
|
998
|
-
<span class="method-args">(italicized = false)</span>
|
|
999
|
-
</a>
|
|
1000
|
-
</div>
|
|
1001
|
-
|
|
1002
|
-
</div>
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
<div class="method-controls">
|
|
1006
|
-
<details class="method-source-toggle">
|
|
1007
|
-
<summary>Source</summary>
|
|
1008
|
-
</details>
|
|
1009
|
-
</div>
|
|
1010
|
-
<div class="method-source-code" id="change_font_italics-source">
|
|
1011
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 204</span>
|
|
1012
|
-
<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>)
|
|
1013
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1014
|
-
|
|
1015
|
-
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
|
1016
|
-
<span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_italic</span>(<span class="ruby-identifier">italicized</span>)
|
|
1017
|
-
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
1018
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1019
|
-
</div>
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
<div class="method-description">
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
<p>Changes font italics settings of cell</p>
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
</div>
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
</div>
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
<div id="method-i-change_font_name" class="method-detail anchor-link ">
|
|
1039
|
-
<div class="method-header">
|
|
1040
|
-
|
|
1041
|
-
<div class="method-heading">
|
|
1042
|
-
<a href="#method-i-change_font_name" title="Link to this method">
|
|
1043
|
-
<span class="method-name">change_font_name</span>
|
|
1044
|
-
<span class="method-args">(new_font_name = 'Verdana')</span>
|
|
1045
|
-
</a>
|
|
1046
|
-
</div>
|
|
1047
|
-
|
|
1048
|
-
</div>
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
<div class="method-controls">
|
|
1052
|
-
<details class="method-source-toggle">
|
|
1053
|
-
<summary>Source</summary>
|
|
1054
|
-
</details>
|
|
1055
|
-
</div>
|
|
1056
|
-
<div class="method-source-code" id="change_font_name-source">
|
|
1057
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 175</span>
|
|
1058
|
-
<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>)
|
|
1059
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1060
|
-
|
|
1061
|
-
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
|
1062
|
-
<span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_name</span>(<span class="ruby-identifier">new_font_name</span>)
|
|
1063
|
-
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
1064
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1065
|
-
</div>
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
<div class="method-description">
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
<p>Changes font name of cell</p>
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
</div>
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
</div>
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
<div id="method-i-change_font_size" class="method-detail anchor-link ">
|
|
1085
|
-
<div class="method-header">
|
|
1086
|
-
|
|
1087
|
-
<div class="method-heading">
|
|
1088
|
-
<a href="#method-i-change_font_size" title="Link to this method">
|
|
1089
|
-
<span class="method-name">change_font_size</span>
|
|
1090
|
-
<span class="method-args">(font_size = 10)</span>
|
|
1091
|
-
</a>
|
|
1092
|
-
</div>
|
|
1093
|
-
|
|
1094
|
-
</div>
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
<div class="method-controls">
|
|
1098
|
-
<details class="method-source-toggle">
|
|
1099
|
-
<summary>Source</summary>
|
|
1100
|
-
</details>
|
|
1101
|
-
</div>
|
|
1102
|
-
<div class="method-source-code" id="change_font_size-source">
|
|
1103
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 184</span>
|
|
1104
|
-
<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>)
|
|
1105
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1106
|
-
<span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</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>)
|
|
1107
|
-
|
|
1108
|
-
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
|
1109
|
-
<span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_size</span>(<span class="ruby-identifier">font_size</span>)
|
|
1110
|
-
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
1111
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1112
|
-
</div>
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
<div class="method-description">
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
<p>Changes font size of cell</p>
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
</div>
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
</div>
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
<div id="method-i-change_font_strikethrough" class="method-detail anchor-link ">
|
|
1132
|
-
<div class="method-header">
|
|
1133
|
-
|
|
1134
|
-
<div class="method-heading">
|
|
1135
|
-
<a href="#method-i-change_font_strikethrough" title="Link to this method">
|
|
1136
|
-
<span class="method-name">change_font_strikethrough</span>
|
|
1137
|
-
<span class="method-args">(struckthrough = false)</span>
|
|
1138
|
-
</a>
|
|
1139
|
-
</div>
|
|
1140
|
-
|
|
1141
|
-
</div>
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
<div class="method-controls">
|
|
1145
|
-
<details class="method-source-toggle">
|
|
1146
|
-
<summary>Source</summary>
|
|
1147
|
-
</details>
|
|
1148
|
-
</div>
|
|
1149
|
-
<div class="method-source-code" id="change_font_strikethrough-source">
|
|
1150
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 230</span>
|
|
1151
|
-
<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>)
|
|
1152
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1153
|
-
|
|
1154
|
-
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
|
1155
|
-
<span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_strikethrough</span>(<span class="ruby-identifier">struckthrough</span>)
|
|
1156
|
-
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
1157
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1158
|
-
</div>
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
<div class="method-description">
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
</div>
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
</div>
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
<div id="method-i-change_font_underline" class="method-detail anchor-link ">
|
|
1178
|
-
<div class="method-header">
|
|
1179
|
-
|
|
1180
|
-
<div class="method-heading">
|
|
1181
|
-
<a href="#method-i-change_font_underline" title="Link to this method">
|
|
1182
|
-
<span class="method-name">change_font_underline</span>
|
|
1183
|
-
<span class="method-args">(underlined = false)</span>
|
|
1184
|
-
</a>
|
|
1185
|
-
</div>
|
|
1186
|
-
|
|
1187
|
-
</div>
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
<div class="method-controls">
|
|
1191
|
-
<details class="method-source-toggle">
|
|
1192
|
-
<summary>Source</summary>
|
|
1193
|
-
</details>
|
|
1194
|
-
</div>
|
|
1195
|
-
<div class="method-source-code" id="change_font_underline-source">
|
|
1196
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 222</span>
|
|
1197
|
-
<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>)
|
|
1198
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1199
|
-
|
|
1200
|
-
<span class="ruby-identifier">font</span> = <span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">dup</span>
|
|
1201
|
-
<span class="ruby-identifier">font</span>.<span class="ruby-identifier">set_underline</span>(<span class="ruby-identifier">underlined</span>)
|
|
1202
|
-
<span class="ruby-identifier">update_font_references</span>(<span class="ruby-identifier">font</span>)
|
|
1203
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1204
|
-
</div>
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
<div class="method-description">
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
<p>Changes font underline settings of cell</p>
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
</div>
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
</div>
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
<div id="method-i-change_horizontal_alignment" class="method-detail anchor-link ">
|
|
1224
|
-
<div class="method-header">
|
|
1225
|
-
|
|
1226
|
-
<div class="method-heading">
|
|
1227
|
-
<a href="#method-i-change_horizontal_alignment" title="Link to this method">
|
|
1228
|
-
<span class="method-name">change_horizontal_alignment</span>
|
|
1229
|
-
<span class="method-args">(alignment = 'center')</span>
|
|
1230
|
-
</a>
|
|
1231
|
-
</div>
|
|
1232
|
-
|
|
1233
|
-
</div>
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
<div class="method-controls">
|
|
1237
|
-
<details class="method-source-toggle">
|
|
1238
|
-
<summary>Source</summary>
|
|
1239
|
-
</details>
|
|
1240
|
-
</div>
|
|
1241
|
-
<div class="method-source-code" id="change_horizontal_alignment-source">
|
|
1242
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 44</span>
|
|
1243
|
-
<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>)
|
|
1244
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1245
|
-
<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> }
|
|
1246
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1247
|
-
</div>
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
<div class="method-description">
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
</div>
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
</div>
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
<div id="method-i-change_shrink_to_fit" class="method-detail anchor-link ">
|
|
1267
|
-
<div class="method-header">
|
|
1268
|
-
|
|
1269
|
-
<div class="method-heading">
|
|
1270
|
-
<a href="#method-i-change_shrink_to_fit" title="Link to this method">
|
|
1271
|
-
<span class="method-name">change_shrink_to_fit</span>
|
|
1272
|
-
<span class="method-args">(shrink_to_fit = false)</span>
|
|
1273
|
-
</a>
|
|
1274
|
-
</div>
|
|
1275
|
-
|
|
1276
|
-
</div>
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
<div class="method-controls">
|
|
1280
|
-
<details class="method-source-toggle">
|
|
1281
|
-
<summary>Source</summary>
|
|
1282
|
-
</details>
|
|
1283
|
-
</div>
|
|
1284
|
-
<div class="method-source-code" id="change_shrink_to_fit-source">
|
|
1285
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 59</span>
|
|
1286
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_shrink_to_fit</span>(<span class="ruby-identifier">shrink_to_fit</span> = <span class="ruby-keyword">false</span>)
|
|
1287
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1288
|
-
<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">shrink_to_fit</span> = <span class="ruby-identifier">shrink_to_fit</span> }
|
|
1289
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1290
|
-
</div>
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
<div class="method-description">
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
</div>
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
</div>
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
<div id="method-i-change_text_indent" class="method-detail anchor-link ">
|
|
1310
|
-
<div class="method-header">
|
|
1311
|
-
|
|
1312
|
-
<div class="method-heading">
|
|
1313
|
-
<a href="#method-i-change_text_indent" title="Link to this method">
|
|
1314
|
-
<span class="method-name">change_text_indent</span>
|
|
1315
|
-
<span class="method-args">(indent)</span>
|
|
1316
|
-
</a>
|
|
1317
|
-
</div>
|
|
1318
|
-
|
|
1319
|
-
</div>
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
<div class="method-controls">
|
|
1323
|
-
<details class="method-source-toggle">
|
|
1324
|
-
<summary>Source</summary>
|
|
1325
|
-
</details>
|
|
1326
|
-
</div>
|
|
1327
|
-
<div class="method-source-code" id="change_text_indent-source">
|
|
1328
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 69</span>
|
|
1329
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_indent</span>(<span class="ruby-identifier">indent</span>)
|
|
1330
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1331
|
-
<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> }
|
|
1332
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1333
|
-
</div>
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
<div class="method-description">
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
</div>
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
</div>
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
<div id="method-i-change_text_rotation" class="method-detail anchor-link ">
|
|
1353
|
-
<div class="method-header">
|
|
1354
|
-
|
|
1355
|
-
<div class="method-heading">
|
|
1356
|
-
<a href="#method-i-change_text_rotation" title="Link to this method">
|
|
1357
|
-
<span class="method-name">change_text_rotation</span>
|
|
1358
|
-
<span class="method-args">(rot)</span>
|
|
1359
|
-
</a>
|
|
1360
|
-
</div>
|
|
1361
|
-
|
|
1362
|
-
</div>
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
<div class="method-controls">
|
|
1366
|
-
<details class="method-source-toggle">
|
|
1367
|
-
<summary>Source</summary>
|
|
1368
|
-
</details>
|
|
1369
|
-
</div>
|
|
1370
|
-
<div class="method-source-code" id="change_text_rotation-source">
|
|
1371
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 64</span>
|
|
1372
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">change_text_rotation</span>(<span class="ruby-identifier">rot</span>)
|
|
1373
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1374
|
-
<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> }
|
|
1375
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1376
|
-
</div>
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
<div class="method-description">
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
</div>
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
</div>
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
<div id="method-i-change_text_wrap" class="method-detail anchor-link ">
|
|
1396
|
-
<div class="method-header">
|
|
1397
|
-
|
|
1398
|
-
<div class="method-heading">
|
|
1399
|
-
<a href="#method-i-change_text_wrap" title="Link to this method">
|
|
1400
|
-
<span class="method-name">change_text_wrap</span>
|
|
1401
|
-
<span class="method-args">(wrap = false)</span>
|
|
1402
|
-
</a>
|
|
1403
|
-
</div>
|
|
1404
|
-
|
|
1405
|
-
</div>
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
<div class="method-controls">
|
|
1409
|
-
<details class="method-source-toggle">
|
|
1410
|
-
<summary>Source</summary>
|
|
1411
|
-
</details>
|
|
1412
|
-
</div>
|
|
1413
|
-
<div class="method-source-code" id="change_text_wrap-source">
|
|
1414
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 54</span>
|
|
1415
|
-
<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>)
|
|
1416
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1417
|
-
<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> }
|
|
1418
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1419
|
-
</div>
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
<div class="method-description">
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
</div>
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
</div>
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
<div id="method-i-change_vertical_alignment" class="method-detail anchor-link ">
|
|
1439
|
-
<div class="method-header">
|
|
1440
|
-
|
|
1441
|
-
<div class="method-heading">
|
|
1442
|
-
<a href="#method-i-change_vertical_alignment" title="Link to this method">
|
|
1443
|
-
<span class="method-name">change_vertical_alignment</span>
|
|
1444
|
-
<span class="method-args">(alignment = 'center')</span>
|
|
1445
|
-
</a>
|
|
1446
|
-
</div>
|
|
1447
|
-
|
|
1448
|
-
</div>
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
<div class="method-controls">
|
|
1452
|
-
<details class="method-source-toggle">
|
|
1453
|
-
<summary>Source</summary>
|
|
1454
|
-
</details>
|
|
1455
|
-
</div>
|
|
1456
|
-
<div class="method-source-code" id="change_vertical_alignment-source">
|
|
1457
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 49</span>
|
|
1458
|
-
<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>)
|
|
1459
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1460
|
-
<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> }
|
|
1461
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1462
|
-
</div>
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
<div class="method-description">
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
</div>
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
</div>
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
<div id="method-i-fill_color" class="method-detail anchor-link ">
|
|
1482
|
-
<div class="method-header">
|
|
1483
|
-
|
|
1484
|
-
<div class="method-heading">
|
|
1485
|
-
<a href="#method-i-fill_color" title="Link to this method">
|
|
1486
|
-
<span class="method-name">fill_color</span>
|
|
1487
|
-
<span class="method-args">()</span>
|
|
1488
|
-
</a>
|
|
1489
|
-
</div>
|
|
1490
|
-
|
|
1491
|
-
</div>
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
<div class="method-controls">
|
|
1495
|
-
<details class="method-source-toggle">
|
|
1496
|
-
<summary>Source</summary>
|
|
1497
|
-
</details>
|
|
1498
|
-
</div>
|
|
1499
|
-
<div class="method-source-code" id="fill_color-source">
|
|
1500
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 120</span>
|
|
1501
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fill_color</span>
|
|
1502
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1503
|
-
<span class="ruby-identifier">workbook</span>.<span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">get_cell_xf</span>)
|
|
1504
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1505
|
-
</div>
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
<div class="method-description">
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
</div>
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
</div>
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
<div id="method-i-font_color" class="method-detail anchor-link ">
|
|
1525
|
-
<div class="method-header">
|
|
1526
|
-
|
|
1527
|
-
<div class="method-heading">
|
|
1528
|
-
<a href="#method-i-font_color" title="Link to this method">
|
|
1529
|
-
<span class="method-name">font_color</span>
|
|
1530
|
-
<span class="method-args">()</span>
|
|
1531
|
-
</a>
|
|
1532
|
-
</div>
|
|
1533
|
-
|
|
1534
|
-
</div>
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
<div class="method-controls">
|
|
1538
|
-
<details class="method-source-toggle">
|
|
1539
|
-
<summary>Source</summary>
|
|
1540
|
-
</details>
|
|
1541
|
-
</div>
|
|
1542
|
-
<div class="method-source-code" id="font_color-source">
|
|
1543
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 115</span>
|
|
1544
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_color</span>
|
|
1545
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1546
|
-
<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>
|
|
1547
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1548
|
-
</div>
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
<div class="method-description">
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
</div>
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
</div>
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
<div id="method-i-font_name" class="method-detail anchor-link ">
|
|
1568
|
-
<div class="method-header">
|
|
1569
|
-
|
|
1570
|
-
<div class="method-heading">
|
|
1571
|
-
<a href="#method-i-font_name" title="Link to this method">
|
|
1572
|
-
<span class="method-name">font_name</span>
|
|
1573
|
-
<span class="method-args">()</span>
|
|
1574
|
-
</a>
|
|
1575
|
-
</div>
|
|
1576
|
-
|
|
1577
|
-
</div>
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
<div class="method-controls">
|
|
1581
|
-
<details class="method-source-toggle">
|
|
1582
|
-
<summary>Source</summary>
|
|
1583
|
-
</details>
|
|
1584
|
-
</div>
|
|
1585
|
-
<div class="method-source-code" id="font_name-source">
|
|
1586
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 105</span>
|
|
1587
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_name</span>
|
|
1588
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1589
|
-
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_name</span>
|
|
1590
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1591
|
-
</div>
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
<div class="method-description">
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
</div>
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
</div>
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
<div id="method-i-font_size" class="method-detail anchor-link ">
|
|
1611
|
-
<div class="method-header">
|
|
1612
|
-
|
|
1613
|
-
<div class="method-heading">
|
|
1614
|
-
<a href="#method-i-font_size" title="Link to this method">
|
|
1615
|
-
<span class="method-name">font_size</span>
|
|
1616
|
-
<span class="method-args">()</span>
|
|
1617
|
-
</a>
|
|
1618
|
-
</div>
|
|
1619
|
-
|
|
1620
|
-
</div>
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
<div class="method-controls">
|
|
1624
|
-
<details class="method-source-toggle">
|
|
1625
|
-
<summary>Source</summary>
|
|
1626
|
-
</details>
|
|
1627
|
-
</div>
|
|
1628
|
-
<div class="method-source-code" id="font_size-source">
|
|
1629
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 110</span>
|
|
1630
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">font_size</span>
|
|
1631
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1632
|
-
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">get_size</span>
|
|
1633
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1634
|
-
</div>
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
<div class="method-description">
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
</div>
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
</div>
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
<div id="method-i-font_switch" class="method-detail anchor-link ">
|
|
1654
|
-
<div class="method-header">
|
|
1655
|
-
|
|
1656
|
-
<div class="method-heading">
|
|
1657
|
-
<a href="#method-i-font_switch" title="Link to this method">
|
|
1658
|
-
<span class="method-name">font_switch</span>
|
|
1659
|
-
<span class="method-args">(change_type, arg)</span>
|
|
1660
|
-
</a>
|
|
1661
|
-
</div>
|
|
1662
|
-
|
|
1663
|
-
</div>
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
<div class="method-controls">
|
|
1667
|
-
<details class="method-source-toggle">
|
|
1668
|
-
<summary>Source</summary>
|
|
1669
|
-
</details>
|
|
1670
|
-
</div>
|
|
1671
|
-
<div class="method-source-code" id="font_switch-source">
|
|
1672
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 246</span>
|
|
1673
|
-
<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>)
|
|
1674
|
-
<span class="ruby-keyword">case</span> <span class="ruby-identifier">change_type</span>
|
|
1675
|
-
<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>)
|
|
1676
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">SIZE</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">change_font_size</span>(<span class="ruby-identifier">arg</span>)
|
|
1677
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">COLOR</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">change_font_color</span>(<span class="ruby-identifier">arg</span>)
|
|
1678
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">ITALICS</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">change_font_italics</span>(<span class="ruby-identifier">arg</span>)
|
|
1679
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">BOLD</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">change_font_bold</span>(<span class="ruby-identifier">arg</span>)
|
|
1680
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">UNDERLINE</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">change_font_underline</span>(<span class="ruby-identifier">arg</span>)
|
|
1681
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Worksheet</span><span class="ruby-operator">::</span><span class="ruby-constant">STRIKETHROUGH</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">change_font_strikethrough</span>(<span class="ruby-identifier">arg</span>)
|
|
1682
|
-
<span class="ruby-keyword">else</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"Invalid change_type: #{change_type}"</span>
|
|
1683
|
-
<span class="ruby-keyword">end</span>
|
|
1684
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1685
|
-
</div>
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
<div class="method-description">
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
<p>Performs correct modification based on what type of change_type is specified</p>
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
</div>
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
</div>
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
<div id="method-i-get_border" class="method-detail anchor-link ">
|
|
1705
|
-
<div class="method-header">
|
|
1706
|
-
|
|
1707
|
-
<div class="method-heading">
|
|
1708
|
-
<a href="#method-i-get_border" title="Link to this method">
|
|
1709
|
-
<span class="method-name">get_border</span>
|
|
1710
|
-
<span class="method-args">(direction)</span>
|
|
1711
|
-
</a>
|
|
1712
|
-
</div>
|
|
1713
|
-
|
|
1714
|
-
</div>
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
<div class="method-controls">
|
|
1718
|
-
<details class="method-source-toggle">
|
|
1719
|
-
<summary>Source</summary>
|
|
1720
|
-
</details>
|
|
1721
|
-
</div>
|
|
1722
|
-
<div class="method-source-code" id="get_border-source">
|
|
1723
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 34</span>
|
|
1724
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_border</span>(<span class="ruby-identifier">direction</span>)
|
|
1725
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1726
|
-
<span class="ruby-identifier">get_cell_border</span>.<span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">direction</span>)
|
|
1727
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1728
|
-
</div>
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
<div class="method-description">
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
</div>
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
</div>
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
<div id="method-i-get_border_color" class="method-detail anchor-link ">
|
|
1748
|
-
<div class="method-header">
|
|
1749
|
-
|
|
1750
|
-
<div class="method-heading">
|
|
1751
|
-
<a href="#method-i-get_border_color" title="Link to this method">
|
|
1752
|
-
<span class="method-name">get_border_color</span>
|
|
1753
|
-
<span class="method-args">(direction)</span>
|
|
1754
|
-
</a>
|
|
1755
|
-
</div>
|
|
1756
|
-
|
|
1757
|
-
</div>
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
<div class="method-controls">
|
|
1761
|
-
<details class="method-source-toggle">
|
|
1762
|
-
<summary>Source</summary>
|
|
1763
|
-
</details>
|
|
1764
|
-
</div>
|
|
1765
|
-
<div class="method-source-code" id="get_border_color-source">
|
|
1766
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 39</span>
|
|
1767
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_border_color</span>(<span class="ruby-identifier">direction</span>)
|
|
1768
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1769
|
-
<span class="ruby-identifier">get_cell_border</span>.<span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">direction</span>)
|
|
1770
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1771
|
-
</div>
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
<div class="method-description">
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
</div>
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
</div>
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
<div id="method-i-horizontal_alignment" class="method-detail anchor-link ">
|
|
1791
|
-
<div class="method-header">
|
|
1792
|
-
|
|
1793
|
-
<div class="method-heading">
|
|
1794
|
-
<a href="#method-i-horizontal_alignment" title="Link to this method">
|
|
1795
|
-
<span class="method-name">horizontal_alignment</span>
|
|
1796
|
-
<span class="method-args">()</span>
|
|
1797
|
-
</a>
|
|
1798
|
-
</div>
|
|
1799
|
-
|
|
1800
|
-
</div>
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
<div class="method-controls">
|
|
1804
|
-
<details class="method-source-toggle">
|
|
1805
|
-
<summary>Source</summary>
|
|
1806
|
-
</details>
|
|
1807
|
-
</div>
|
|
1808
|
-
<div class="method-source-code" id="horizontal_alignment-source">
|
|
1809
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 125</span>
|
|
1810
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">horizontal_alignment</span>
|
|
1811
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1812
|
-
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
1813
|
-
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
|
|
1814
|
-
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">horizontal</span>
|
|
1815
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1816
|
-
</div>
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
<div class="method-description">
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
</div>
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
</div>
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
<div id="method-i-is_bolded" class="method-detail anchor-link ">
|
|
1836
|
-
<div class="method-header">
|
|
1837
|
-
|
|
1838
|
-
<div class="method-heading">
|
|
1839
|
-
<a href="#method-i-is_bolded" title="Link to this method">
|
|
1840
|
-
<span class="method-name">is_bolded</span>
|
|
1841
|
-
<span class="method-args">()</span>
|
|
1842
|
-
</a>
|
|
1843
|
-
</div>
|
|
1844
|
-
|
|
1845
|
-
</div>
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
<div class="method-controls">
|
|
1849
|
-
<details class="method-source-toggle">
|
|
1850
|
-
<summary>Source</summary>
|
|
1851
|
-
</details>
|
|
1852
|
-
</div>
|
|
1853
|
-
<div class="method-source-code" id="is_bolded-source">
|
|
1854
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 90</span>
|
|
1855
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_bolded</span>
|
|
1856
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1857
|
-
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_bold</span>
|
|
1858
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1859
|
-
</div>
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
<div class="method-description">
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
</div>
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
</div>
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
<div id="method-i-is_italicized" class="method-detail anchor-link ">
|
|
1879
|
-
<div class="method-header">
|
|
1880
|
-
|
|
1881
|
-
<div class="method-heading">
|
|
1882
|
-
<a href="#method-i-is_italicized" title="Link to this method">
|
|
1883
|
-
<span class="method-name">is_italicized</span>
|
|
1884
|
-
<span class="method-args">()</span>
|
|
1885
|
-
</a>
|
|
1886
|
-
</div>
|
|
1887
|
-
|
|
1888
|
-
</div>
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
<div class="method-controls">
|
|
1892
|
-
<details class="method-source-toggle">
|
|
1893
|
-
<summary>Source</summary>
|
|
1894
|
-
</details>
|
|
1895
|
-
</div>
|
|
1896
|
-
<div class="method-source-code" id="is_italicized-source">
|
|
1897
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 85</span>
|
|
1898
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_italicized</span>
|
|
1899
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1900
|
-
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_italic</span>
|
|
1901
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1902
|
-
</div>
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
<div class="method-description">
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
</div>
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
</div>
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
<div id="method-i-is_struckthrough" class="method-detail anchor-link ">
|
|
1922
|
-
<div class="method-header">
|
|
1923
|
-
|
|
1924
|
-
<div class="method-heading">
|
|
1925
|
-
<a href="#method-i-is_struckthrough" title="Link to this method">
|
|
1926
|
-
<span class="method-name">is_struckthrough</span>
|
|
1927
|
-
<span class="method-args">()</span>
|
|
1928
|
-
</a>
|
|
1929
|
-
</div>
|
|
1930
|
-
|
|
1931
|
-
</div>
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
<div class="method-controls">
|
|
1935
|
-
<details class="method-source-toggle">
|
|
1936
|
-
<summary>Source</summary>
|
|
1937
|
-
</details>
|
|
1938
|
-
</div>
|
|
1939
|
-
<div class="method-source-code" id="is_struckthrough-source">
|
|
1940
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 100</span>
|
|
1941
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_struckthrough</span>
|
|
1942
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1943
|
-
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_strikethrough</span>
|
|
1944
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1945
|
-
</div>
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
<div class="method-description">
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
</div>
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
</div>
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
<div id="method-i-is_underlined" class="method-detail anchor-link ">
|
|
1965
|
-
<div class="method-header">
|
|
1966
|
-
|
|
1967
|
-
<div class="method-heading">
|
|
1968
|
-
<a href="#method-i-is_underlined" title="Link to this method">
|
|
1969
|
-
<span class="method-name">is_underlined</span>
|
|
1970
|
-
<span class="method-args">()</span>
|
|
1971
|
-
</a>
|
|
1972
|
-
</div>
|
|
1973
|
-
|
|
1974
|
-
</div>
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
<div class="method-controls">
|
|
1978
|
-
<details class="method-source-toggle">
|
|
1979
|
-
<summary>Source</summary>
|
|
1980
|
-
</details>
|
|
1981
|
-
</div>
|
|
1982
|
-
<div class="method-source-code" id="is_underlined-source">
|
|
1983
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 95</span>
|
|
1984
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_underlined</span>
|
|
1985
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
1986
|
-
<span class="ruby-identifier">get_cell_font</span>.<span class="ruby-identifier">is_underlined</span>
|
|
1987
|
-
<span class="ruby-keyword">end</span></pre>
|
|
1988
|
-
</div>
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
<div class="method-description">
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
</div>
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
</div>
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
<div id="method-i-remove_formula" class="method-detail anchor-link ">
|
|
2008
|
-
<div class="method-header">
|
|
2009
|
-
|
|
2010
|
-
<div class="method-heading">
|
|
2011
|
-
<a href="#method-i-remove_formula" title="Link to this method">
|
|
2012
|
-
<span class="method-name">remove_formula</span>
|
|
2013
|
-
<span class="method-args">()</span>
|
|
2014
|
-
</a>
|
|
2015
|
-
</div>
|
|
2016
|
-
|
|
2017
|
-
</div>
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
<div class="method-controls">
|
|
2021
|
-
<details class="method-source-toggle">
|
|
2022
|
-
<summary>Source</summary>
|
|
2023
|
-
</details>
|
|
2024
|
-
</div>
|
|
2025
|
-
<div class="method-source-code" id="remove_formula-source">
|
|
2026
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 24</span>
|
|
2027
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">remove_formula</span>
|
|
2028
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">formula</span> = <span class="ruby-keyword">nil</span>
|
|
2029
|
-
|
|
2030
|
-
<span class="ruby-identifier">calculation_chain</span> = <span class="ruby-identifier">workbook</span>&.<span class="ruby-identifier">calculation_chain</span>
|
|
2031
|
-
<span class="ruby-identifier">calculation_cells</span> = <span class="ruby-identifier">calculation_chain</span>&.<span class="ruby-identifier">cells</span>
|
|
2032
|
-
<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>
|
|
2033
|
-
(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">ref</span>.<span class="ruby-identifier">first_col</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">first_row</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">row</span>)
|
|
2034
|
-
}
|
|
2035
|
-
<span class="ruby-keyword">end</span></pre>
|
|
2036
|
-
</div>
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
<div class="method-description">
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
</div>
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
</div>
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
<div id="method-i-set_number_format" class="method-detail anchor-link ">
|
|
2056
|
-
<div class="method-header">
|
|
2057
|
-
|
|
2058
|
-
<div class="method-heading">
|
|
2059
|
-
<a href="#method-i-set_number_format" title="Link to this method">
|
|
2060
|
-
<span class="method-name">set_number_format</span>
|
|
2061
|
-
<span class="method-args">(format_code)</span>
|
|
2062
|
-
</a>
|
|
2063
|
-
</div>
|
|
2064
|
-
|
|
2065
|
-
</div>
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
<div class="method-controls">
|
|
2069
|
-
<details class="method-source-toggle">
|
|
2070
|
-
<summary>Source</summary>
|
|
2071
|
-
</details>
|
|
2072
|
-
</div>
|
|
2073
|
-
<div class="method-source-code" id="set_number_format-source">
|
|
2074
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 160</span>
|
|
2075
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_number_format</span>(<span class="ruby-identifier">format_code</span>)
|
|
2076
|
-
<span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">get_cell_xf</span>.<span class="ruby-identifier">dup</span>
|
|
2077
|
-
<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>)
|
|
2078
|
-
<span class="ruby-identifier">new_xf</span>.<span class="ruby-identifier">apply_number_format</span> = <span class="ruby-keyword">true</span>
|
|
2079
|
-
<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>)
|
|
2080
|
-
<span class="ruby-keyword">end</span></pre>
|
|
2081
|
-
</div>
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
<div class="method-description">
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
</div>
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
</div>
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
<div id="method-i-text_indent" class="method-detail anchor-link ">
|
|
2101
|
-
<div class="method-header">
|
|
2102
|
-
|
|
2103
|
-
<div class="method-heading">
|
|
2104
|
-
<a href="#method-i-text_indent" title="Link to this method">
|
|
2105
|
-
<span class="method-name">text_indent</span>
|
|
2106
|
-
<span class="method-args">()</span>
|
|
2107
|
-
</a>
|
|
2108
|
-
</div>
|
|
2109
|
-
|
|
2110
|
-
</div>
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
<div class="method-controls">
|
|
2114
|
-
<details class="method-source-toggle">
|
|
2115
|
-
<summary>Source</summary>
|
|
2116
|
-
</details>
|
|
2117
|
-
</div>
|
|
2118
|
-
<div class="method-source-code" id="text_indent-source">
|
|
2119
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 153</span>
|
|
2120
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_indent</span>
|
|
2121
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
2122
|
-
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
2123
|
-
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
|
|
2124
|
-
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">indent</span>
|
|
2125
|
-
<span class="ruby-keyword">end</span></pre>
|
|
2126
|
-
</div>
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
<div class="method-description">
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
</div>
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
</div>
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
<div id="method-i-text_rotation" class="method-detail anchor-link ">
|
|
2146
|
-
<div class="method-header">
|
|
2147
|
-
|
|
2148
|
-
<div class="method-heading">
|
|
2149
|
-
<a href="#method-i-text_rotation" title="Link to this method">
|
|
2150
|
-
<span class="method-name">text_rotation</span>
|
|
2151
|
-
<span class="method-args">()</span>
|
|
2152
|
-
</a>
|
|
2153
|
-
</div>
|
|
2154
|
-
|
|
2155
|
-
</div>
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
<div class="method-controls">
|
|
2159
|
-
<details class="method-source-toggle">
|
|
2160
|
-
<summary>Source</summary>
|
|
2161
|
-
</details>
|
|
2162
|
-
</div>
|
|
2163
|
-
<div class="method-source-code" id="text_rotation-source">
|
|
2164
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 146</span>
|
|
2165
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_rotation</span>
|
|
2166
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
2167
|
-
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
2168
|
-
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
|
|
2169
|
-
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">text_rotation</span>
|
|
2170
|
-
<span class="ruby-keyword">end</span></pre>
|
|
2171
|
-
</div>
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
<div class="method-description">
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
</div>
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
</div>
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
<div id="method-i-text_wrap" class="method-detail anchor-link ">
|
|
2191
|
-
<div class="method-header">
|
|
2192
|
-
|
|
2193
|
-
<div class="method-heading">
|
|
2194
|
-
<a href="#method-i-text_wrap" title="Link to this method">
|
|
2195
|
-
<span class="method-name">text_wrap</span>
|
|
2196
|
-
<span class="method-args">()</span>
|
|
2197
|
-
</a>
|
|
2198
|
-
</div>
|
|
2199
|
-
|
|
2200
|
-
</div>
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
<div class="method-controls">
|
|
2204
|
-
<details class="method-source-toggle">
|
|
2205
|
-
<summary>Source</summary>
|
|
2206
|
-
</details>
|
|
2207
|
-
</div>
|
|
2208
|
-
<div class="method-source-code" id="text_wrap-source">
|
|
2209
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 139</span>
|
|
2210
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">text_wrap</span>
|
|
2211
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
2212
|
-
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
2213
|
-
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
|
|
2214
|
-
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">wrap_text</span>
|
|
2215
|
-
<span class="ruby-keyword">end</span></pre>
|
|
2216
|
-
</div>
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
<div class="method-description">
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
</div>
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
</div>
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
<div id="method-i-vertical_alignment" class="method-detail anchor-link ">
|
|
2236
|
-
<div class="method-header">
|
|
2237
|
-
|
|
2238
|
-
<div class="method-heading">
|
|
2239
|
-
<a href="#method-i-vertical_alignment" title="Link to this method">
|
|
2240
|
-
<span class="method-name">vertical_alignment</span>
|
|
2241
|
-
<span class="method-args">()</span>
|
|
2242
|
-
</a>
|
|
2243
|
-
</div>
|
|
2244
|
-
|
|
2245
|
-
</div>
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
<div class="method-controls">
|
|
2249
|
-
<details class="method-source-toggle">
|
|
2250
|
-
<summary>Source</summary>
|
|
2251
|
-
</details>
|
|
2252
|
-
</div>
|
|
2253
|
-
<div class="method-source-code" id="vertical_alignment-source">
|
|
2254
|
-
<pre class="ruby"><span class="ruby-comment"># File lib/rubyXL/convenience_methods/cell.rb, line 132</span>
|
|
2255
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">vertical_alignment</span>
|
|
2256
|
-
<span class="ruby-identifier">validate_worksheet</span>
|
|
2257
|
-
<span class="ruby-identifier">xf_obj</span> = <span class="ruby-identifier">get_cell_xf</span>
|
|
2258
|
-
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">nil?</span>
|
|
2259
|
-
<span class="ruby-identifier">xf_obj</span>.<span class="ruby-identifier">alignment</span>.<span class="ruby-identifier">vertical</span>
|
|
2260
|
-
<span class="ruby-keyword">end</span></pre>
|
|
2261
|
-
</div>
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
<div class="method-description">
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
</div>
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
</div>
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
</section>
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
</section>
|
|
2286
|
-
|
|
2287
|
-
</main>
|
|
2288
|
-
|
|
2289
|
-
<aside class="table-of-contents" role="complementary" aria-label="Table of Contents">
|
|
2290
|
-
<div class="toc-sticky">
|
|
2291
|
-
<h3 class="toc-heading">On This Page</h3>
|
|
2292
|
-
<nav class="toc-nav" id="toc-nav" aria-label="Page sections">
|
|
2293
|
-
<!-- Generated by JavaScript based on page headings -->
|
|
2294
|
-
</nav>
|
|
2295
|
-
</div>
|
|
2296
|
-
</aside>
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
<footer class="site-footer">
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
<div class="footer-bottom">
|
|
2303
|
-
<p>
|
|
2304
|
-
Generated by <a href="https://ruby.github.io/rdoc/">RDoc 7.2.0</a>
|
|
2305
|
-
using the Aliki theme by <a href="http://st0012.dev">Stan Lo</a>
|
|
2306
|
-
</p>
|
|
2307
|
-
</div>
|
|
2308
|
-
</footer>
|
|
2309
|
-
|
|
2310
|
-
</body>
|
|
2311
|
-
|