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