rubyXL 3.3.21 → 3.3.22
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/README.rdoc +7 -0
- data/VERSION +1 -1
- data/lib/rubyXL/convenience_methods.rb +63 -0
- data/lib/rubyXL/objects/border.rb +29 -1
- data/lib/rubyXL/objects/comments.rb +2 -2
- data/lib/rubyXL/objects/font.rb +4 -4
- data/rdoc/README_rdoc.html +8 -1
- data/rdoc/RubyXL.html +1 -1
- data/rdoc/RubyXL/AExtension.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/AdjustHandleList.html +1 -1
- data/rdoc/RubyXL/Alignment.html +1 -1
- data/rdoc/RubyXL/AlternateContent.html +1 -1
- data/rdoc/RubyXL/Authors.html +1 -1
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/BinaryImageFile.html +1 -1
- data/rdoc/RubyXL/BodyProperties.html +1 -1
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +86 -4
- data/rdoc/RubyXL/BorderEdge.html +87 -1
- data/rdoc/RubyXL/Borders.html +2 -2
- data/rdoc/RubyXL/Break.html +1 -1
- data/rdoc/RubyXL/BreakList.html +1 -1
- data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
- data/rdoc/RubyXL/CT_Backdrop.html +1 -1
- data/rdoc/RubyXL/CT_Bevel.html +1 -1
- data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
- data/rdoc/RubyXL/CT_Blip.html +1 -1
- data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
- data/rdoc/RubyXL/CT_Camera.html +1 -1
- data/rdoc/RubyXL/CT_Color.html +1 -1
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
- data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
- data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
- data/rdoc/RubyXL/CT_DashStop.html +1 -1
- data/rdoc/RubyXL/CT_DashStopList.html +1 -1
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
- data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
- data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
- data/rdoc/RubyXL/CT_EffectList.html +1 -1
- data/rdoc/RubyXL/CT_EffectReference.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
- data/rdoc/RubyXL/CT_FillEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
- data/rdoc/RubyXL/CT_FlatText.html +1 -1
- data/rdoc/RubyXL/CT_FontCollection.html +1 -1
- data/rdoc/RubyXL/CT_FontReference.html +1 -1
- data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
- data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
- data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_GradientStop.html +1 -1
- data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
- data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
- data/rdoc/RubyXL/CT_HslColor.html +1 -1
- data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_LightRig.html +1 -1
- data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_Path2D.html +1 -1
- data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DList.html +1 -1
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
- data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_Point3D.html +1 -1
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CT_PresetColor.html +1 -1
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
- data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
- data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_Scene3D.html +1 -1
- data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
- data/rdoc/RubyXL/CT_Shape3D.html +1 -1
- data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
- data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
- data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
- data/rdoc/RubyXL/CT_SystemColor.html +1 -1
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextFont.html +1 -1
- data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
- data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_TintEffect.html +1 -1
- data/rdoc/RubyXL/CT_Transform2D.html +1 -1
- data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
- data/rdoc/RubyXL/CT_Vector3D.html +1 -1
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CalculationChain.html +1 -1
- data/rdoc/RubyXL/CalculationChainCell.html +1 -1
- data/rdoc/RubyXL/CalculationProperties.html +1 -1
- data/rdoc/RubyXL/Cell.html +1 -1
- data/rdoc/RubyXL/CellConvenienceMethods.html +101 -28
- data/rdoc/RubyXL/CellExt.html +1 -1
- data/rdoc/RubyXL/CellSmartTag.html +1 -1
- data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
- data/rdoc/RubyXL/CellSmartTags.html +1 -1
- data/rdoc/RubyXL/CellStyle.html +1 -1
- data/rdoc/RubyXL/CellStyleXFs.html +1 -1
- data/rdoc/RubyXL/CellStyles.html +1 -1
- data/rdoc/RubyXL/CellValue.html +1 -1
- data/rdoc/RubyXL/CellWatch.html +1 -1
- data/rdoc/RubyXL/CellWatches.html +1 -1
- data/rdoc/RubyXL/CellXFs.html +1 -1
- data/rdoc/RubyXL/ChartColorsFile.html +1 -1
- data/rdoc/RubyXL/ChartFile.html +1 -1
- data/rdoc/RubyXL/ChartStyleFile.html +1 -1
- data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
- data/rdoc/RubyXL/Chartsheet.html +1 -1
- data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
- data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
- data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
- data/rdoc/RubyXL/ChartsheetView.html +1 -1
- data/rdoc/RubyXL/ChartsheetViews.html +1 -1
- data/rdoc/RubyXL/Color.html +1 -1
- data/rdoc/RubyXL/ColorFilter.html +1 -1
- data/rdoc/RubyXL/ColorScale.html +1 -1
- data/rdoc/RubyXL/ColorSet.html +1 -1
- data/rdoc/RubyXL/Colors.html +1 -1
- data/rdoc/RubyXL/ColumnRange.html +1 -1
- data/rdoc/RubyXL/ColumnRanges.html +1 -1
- data/rdoc/RubyXL/Comment.html +1 -1
- data/rdoc/RubyXL/CommentList.html +1 -1
- data/rdoc/RubyXL/CommentsFile.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
- data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
- data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
- data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
- data/rdoc/RubyXL/ContentTypes.html +1 -1
- data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomColor.html +1 -1
- data/rdoc/RubyXL/CustomColorList.html +1 -1
- data/rdoc/RubyXL/CustomFilter.html +1 -1
- data/rdoc/RubyXL/CustomFilters.html +1 -1
- data/rdoc/RubyXL/CustomGeometry.html +1 -1
- data/rdoc/RubyXL/CustomProperties.html +1 -1
- data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomProperty.html +1 -1
- data/rdoc/RubyXL/CustomSheetView.html +1 -1
- data/rdoc/RubyXL/CustomSheetViews.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
- data/rdoc/RubyXL/CustomXMLFile.html +1 -1
- data/rdoc/RubyXL/DXF.html +1 -1
- data/rdoc/RubyXL/DXFs.html +1 -1
- data/rdoc/RubyXL/DataBar.html +1 -1
- data/rdoc/RubyXL/DataConsolidate.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
- data/rdoc/RubyXL/DataType.html +1 -1
- data/rdoc/RubyXL/DataValidation.html +1 -1
- data/rdoc/RubyXL/DataValidations.html +1 -1
- data/rdoc/RubyXL/DateGroupItem.html +1 -1
- data/rdoc/RubyXL/DefinedName.html +1 -1
- data/rdoc/RubyXL/DefinedNameExt.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DefinedNamesExt.html +1 -1
- data/rdoc/RubyXL/DocumentPropertiesFile.html +1 -1
- data/rdoc/RubyXL/DrawingFile.html +1 -1
- data/rdoc/RubyXL/DynamicFilter.html +1 -1
- data/rdoc/RubyXL/EmbeddedControl.html +1 -1
- data/rdoc/RubyXL/EmbeddedControls.html +1 -1
- data/rdoc/RubyXL/Extension.html +1 -1
- data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Extents.html +1 -1
- data/rdoc/RubyXL/ExternalBook.html +1 -1
- data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
- data/rdoc/RubyXL/ExternalReference.html +1 -1
- data/rdoc/RubyXL/ExternalReferences.html +1 -1
- data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
- data/rdoc/RubyXL/FieldItem.html +1 -1
- data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
- data/rdoc/RubyXL/FileSharing.html +1 -1
- data/rdoc/RubyXL/FileVersion.html +1 -1
- data/rdoc/RubyXL/Fill.html +1 -1
- data/rdoc/RubyXL/Fills.html +1 -1
- data/rdoc/RubyXL/FilterContainer.html +1 -1
- data/rdoc/RubyXL/FloatNode.html +1 -1
- data/rdoc/RubyXL/FloatValue.html +1 -1
- data/rdoc/RubyXL/Font.html +5 -5
- data/rdoc/RubyXL/FontScheme.html +1 -1
- data/rdoc/RubyXL/Fonts.html +1 -1
- data/rdoc/RubyXL/Formula.html +1 -1
- data/rdoc/RubyXL/FunctionGroup.html +1 -1
- data/rdoc/RubyXL/FunctionGroups.html +1 -1
- data/rdoc/RubyXL/GenericStorageObject.html +1 -1
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +1 -1
- data/rdoc/RubyXL/IconFilter.html +1 -1
- data/rdoc/RubyXL/IconSet.html +1 -1
- data/rdoc/RubyXL/IgnoredError.html +1 -1
- data/rdoc/RubyXL/IgnoredErrors.html +1 -1
- data/rdoc/RubyXL/IndexedColors.html +1 -1
- data/rdoc/RubyXL/InputCells.html +1 -1
- data/rdoc/RubyXL/IntegerNode.html +1 -1
- data/rdoc/RubyXL/IntegerValue.html +1 -1
- data/rdoc/RubyXL/LegacyCell.html +1 -1
- data/rdoc/RubyXL/LegacyWorksheet.html +1 -1
- data/rdoc/RubyXL/MRUColors.html +1 -1
- data/rdoc/RubyXL/MacrosFile.html +1 -1
- data/rdoc/RubyXL/MergedCell.html +1 -1
- data/rdoc/RubyXL/MergedCells.html +1 -1
- data/rdoc/RubyXL/NumFmt.html +1 -1
- data/rdoc/RubyXL/NumberFormat.html +1 -1
- data/rdoc/RubyXL/NumberFormats.html +1 -1
- data/rdoc/RubyXL/OLEObject.html +1 -1
- data/rdoc/RubyXL/OLEObjectFile.html +1 -1
- data/rdoc/RubyXL/OLEObjects.html +1 -1
- data/rdoc/RubyXL/OLESize.html +1 -1
- data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/Offset.html +1 -1
- data/rdoc/RubyXL/OutlineProperties.html +1 -1
- data/rdoc/RubyXL/PageMargins.html +1 -1
- data/rdoc/RubyXL/PageSetup.html +1 -1
- data/rdoc/RubyXL/PageSetupProperties.html +1 -1
- data/rdoc/RubyXL/Pane.html +1 -1
- data/rdoc/RubyXL/Parser.html +1 -1
- data/rdoc/RubyXL/PatternFill.html +1 -1
- data/rdoc/RubyXL/PhoneticProperties.html +1 -1
- data/rdoc/RubyXL/PhoneticRun.html +1 -1
- data/rdoc/RubyXL/PivotArea.html +1 -1
- data/rdoc/RubyXL/PivotCache.html +1 -1
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +1 -1
- data/rdoc/RubyXL/PivotTableFile.html +1 -1
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +1 -1
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +1 -1
- data/rdoc/RubyXL/ProtectedRanges.html +1 -1
- data/rdoc/RubyXL/Protection.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +1 -1
- data/rdoc/RubyXL/Reference.html +1 -1
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +1 -1
- data/rdoc/RubyXL/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/Row.html +1 -1
- data/rdoc/RubyXL/RowExt.html +1 -1
- data/rdoc/RubyXL/RunProperties.html +1 -1
- data/rdoc/RubyXL/Scenario.html +1 -1
- data/rdoc/RubyXL/Scenarios.html +1 -1
- data/rdoc/RubyXL/Selection.html +1 -1
- data/rdoc/RubyXL/ShapeGuide.html +1 -1
- data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
- data/rdoc/RubyXL/SharedStringsTable.html +1 -1
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +1 -1
- data/rdoc/RubyXL/SheetDataExt.html +1 -1
- data/rdoc/RubyXL/SheetDataSet.html +1 -1
- data/rdoc/RubyXL/SheetName.html +1 -1
- data/rdoc/RubyXL/SheetNames.html +1 -1
- data/rdoc/RubyXL/Sheets.html +1 -1
- data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
- data/rdoc/RubyXL/SlicerFile.html +1 -1
- data/rdoc/RubyXL/SmartTagProperties.html +1 -1
- data/rdoc/RubyXL/SmartTagType.html +1 -1
- data/rdoc/RubyXL/SmartTagTypes.html +1 -1
- data/rdoc/RubyXL/SmartTags.html +1 -1
- data/rdoc/RubyXL/SortCondition.html +1 -1
- data/rdoc/RubyXL/SortState.html +1 -1
- data/rdoc/RubyXL/Sqref.html +1 -1
- data/rdoc/RubyXL/Stop.html +1 -1
- data/rdoc/RubyXL/StringNode.html +1 -1
- data/rdoc/RubyXL/StringNodeW3C.html +1 -1
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +1 -1
- data/rdoc/RubyXL/TableFile.html +1 -1
- data/rdoc/RubyXL/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +1 -1
- data/rdoc/RubyXL/Text.html +1 -1
- data/rdoc/RubyXL/Theme.html +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/ThumbnailFile.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
- data/rdoc/RubyXL/Variant.html +1 -1
- data/rdoc/RubyXL/Vector.html +1 -1
- data/rdoc/RubyXL/VectorValue.html +1 -1
- data/rdoc/RubyXL/VisualProperties.html +1 -1
- data/rdoc/RubyXL/WebPublishObject.html +1 -1
- data/rdoc/RubyXL/WebPublishObjects.html +1 -1
- data/rdoc/RubyXL/WebPublishingItem.html +1 -1
- data/rdoc/RubyXL/WebPublishingItems.html +1 -1
- data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
- data/rdoc/RubyXL/Workbook.html +1 -1
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +45 -1
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRoot.html +1 -1
- data/rdoc/RubyXL/WorkbookView.html +1 -1
- data/rdoc/RubyXL/WorkbookViews.html +1 -1
- data/rdoc/RubyXL/Worksheet.html +1 -1
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +229 -65
- data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
- data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProtection.html +1 -1
- data/rdoc/RubyXL/WorksheetView.html +1 -1
- data/rdoc/RubyXL/WorksheetViews.html +1 -1
- data/rdoc/RubyXL/XF.html +1 -1
- data/rdoc/created.rid +27 -27
- data/rdoc/index.html +2 -2
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +57 -2
- data/rubyXL.gemspec +37 -37
- data/spec/lib/cell_spec.rb +41 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a41274a3da030b05810f32e1f2b11a19c4e85b5d
|
|
4
|
+
data.tar.gz: 01d5e037e49c0b49943f88ca40bc864ef77a2b58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e713065db254db23b0662b301154c24b5f103bd815b8e15e2da6578820f1699309409abc3de321dc40d90bdecfd24e1f02005089efe52b4c0a198da7a90d8026
|
|
7
|
+
data.tar.gz: 2916934fa29835f8097846084f064288741513e2218f1a73dd1ed8e5b7113c35941042e704ed0af91bec498cce96459a31d95a8c60a1774c6aa69594374058ea
|
data/README.rdoc
CHANGED
|
@@ -52,6 +52,7 @@ Please note that row is a _sparse_ array of cells. Your code *must* expect that
|
|
|
52
52
|
cell.horizontal_alignment
|
|
53
53
|
cell.vertical_alignment
|
|
54
54
|
cell.get_border(:top)
|
|
55
|
+
cell.get_border_color(:top)
|
|
55
56
|
|
|
56
57
|
==== Wrappers for accessing Row properties
|
|
57
58
|
Please note: these methods are being phased out in favor of the OOXML object model.
|
|
@@ -65,6 +66,7 @@ Please note: these methods are being phased out in favor of the OOXML object mod
|
|
|
65
66
|
worksheet.get_row_alignment(0, true)
|
|
66
67
|
worksheet.get_row_alignment(0, false)
|
|
67
68
|
worksheet.get_row_border(0, :right)
|
|
69
|
+
worksheet.get_row_border_color(0, :right)
|
|
68
70
|
|
|
69
71
|
==== Accessing column properties
|
|
70
72
|
Please note: these methods are being phased out in favor of the OOXML object model.
|
|
@@ -78,6 +80,7 @@ Please note: these methods are being phased out in favor of the OOXML object mod
|
|
|
78
80
|
worksheet.get_column_alignment(0, :horizontal)
|
|
79
81
|
worksheet.get_column_alignment(0, :vertical)
|
|
80
82
|
worksheet.get_column_border(0, :right)
|
|
83
|
+
worksheet.get_column_border_color(0, :right)
|
|
81
84
|
|
|
82
85
|
==== Table reading
|
|
83
86
|
In order to discourage unnecessary reshuffling of data in memory, methods +extract_data+ and +get_table+ are being deprecated. You should access and iterate through rows and cells directly:
|
|
@@ -121,6 +124,10 @@ In order to discourage unnecessary reshuffling of data in memory, methods +extra
|
|
|
121
124
|
worksheet.change_row_border(0, :left, 'hairline') # Sets first row to have a left, hairline border
|
|
122
125
|
worksheet.change_column_border(0, :diagonal, 'medium') # Sets first column to have diagonal, medium border
|
|
123
126
|
|
|
127
|
+
# Set the border style first so there's something to color.
|
|
128
|
+
worksheet.change_row_border_color(0, :top, '0ba53d') # Sets first row to have a green top border
|
|
129
|
+
worksheet.change_column_border_color(0, :top, '0ba53d') # Sets first column to have a green top border
|
|
130
|
+
|
|
124
131
|
==== Changing Alignment
|
|
125
132
|
===== Horizontal
|
|
126
133
|
center, distributed, justify, left, right
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.3.
|
|
1
|
+
3.3.22
|
|
@@ -178,6 +178,18 @@ module RubyXL
|
|
|
178
178
|
register_new_xf(xf)
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
+
def modify_border_color(style_index, direction, color)
|
|
182
|
+
xf = cell_xfs[style_index || 0].dup
|
|
183
|
+
new_border = borders[xf.border_id || 0].dup
|
|
184
|
+
new_border.set_edge_color(direction, color)
|
|
185
|
+
|
|
186
|
+
xf.border_id = borders.find_index { |x| x == new_border } # Reuse existing border, if it exists
|
|
187
|
+
xf.border_id ||= borders.size # If this border has never existed before, add it to collection.
|
|
188
|
+
borders[xf.border_id] = new_border
|
|
189
|
+
xf.apply_border = true
|
|
190
|
+
|
|
191
|
+
register_new_xf(xf)
|
|
192
|
+
end
|
|
181
193
|
end
|
|
182
194
|
|
|
183
195
|
|
|
@@ -392,6 +404,13 @@ module RubyXL
|
|
|
392
404
|
border && border.get_edge_style(border_direction)
|
|
393
405
|
end
|
|
394
406
|
|
|
407
|
+
def get_row_border_color(row, border_direction)
|
|
408
|
+
validate_workbook
|
|
409
|
+
|
|
410
|
+
border = @workbook.borders[get_row_xf(row).border_id]
|
|
411
|
+
border && border.get_edge_color(border_direction)
|
|
412
|
+
end
|
|
413
|
+
|
|
395
414
|
def row_font(row)
|
|
396
415
|
(row = sheet_data.rows[row]) && row.get_font
|
|
397
416
|
end
|
|
@@ -514,6 +533,14 @@ module RubyXL
|
|
|
514
533
|
border && border.get_edge_style(border_direction)
|
|
515
534
|
end
|
|
516
535
|
|
|
536
|
+
def get_column_border_color(col, border_direction)
|
|
537
|
+
validate_workbook
|
|
538
|
+
|
|
539
|
+
xf = @workbook.cell_xfs[get_cols_style_index(col)]
|
|
540
|
+
border = @workbook.borders[xf.border_id]
|
|
541
|
+
border && border.get_edge_color(border_direction)
|
|
542
|
+
end
|
|
543
|
+
|
|
517
544
|
def column_font(col)
|
|
518
545
|
validate_workbook
|
|
519
546
|
|
|
@@ -550,6 +577,18 @@ module RubyXL
|
|
|
550
577
|
}
|
|
551
578
|
end
|
|
552
579
|
|
|
580
|
+
def change_row_border_color(row, direction, color = '000000')
|
|
581
|
+
validate_workbook
|
|
582
|
+
ensure_cell_exists(row)
|
|
583
|
+
Color.validate_color(color)
|
|
584
|
+
|
|
585
|
+
sheet_data.rows[row].style_index = @workbook.modify_border_color(get_row_style(row), direction, color)
|
|
586
|
+
|
|
587
|
+
sheet_data[row].cells.each { |c|
|
|
588
|
+
c.change_border_color(direction, color) unless c.nil?
|
|
589
|
+
}
|
|
590
|
+
end
|
|
591
|
+
|
|
553
592
|
def change_row_fill(row_index = 0, rgb = 'ffffff')
|
|
554
593
|
validate_workbook
|
|
555
594
|
ensure_cell_exists(row_index)
|
|
@@ -717,6 +756,19 @@ module RubyXL
|
|
|
717
756
|
}
|
|
718
757
|
end
|
|
719
758
|
|
|
759
|
+
def change_column_border_color(column_index, direction, color)
|
|
760
|
+
validate_workbook
|
|
761
|
+
ensure_cell_exists(0, column_index)
|
|
762
|
+
Color.validate_color(color)
|
|
763
|
+
|
|
764
|
+
cols.get_range(column_index).style_index = @workbook.modify_border_color(get_col_style(column_index), direction, color)
|
|
765
|
+
|
|
766
|
+
sheet_data.rows.each { |row|
|
|
767
|
+
c = row.cells[column_index]
|
|
768
|
+
c.change_border_color(direction, color) unless c.nil?
|
|
769
|
+
}
|
|
770
|
+
end
|
|
771
|
+
|
|
720
772
|
def change_row_alignment(row, &block)
|
|
721
773
|
validate_workbook
|
|
722
774
|
validate_nonnegative(row)
|
|
@@ -780,6 +832,11 @@ module RubyXL
|
|
|
780
832
|
get_cell_border.get_edge_style(direction)
|
|
781
833
|
end
|
|
782
834
|
|
|
835
|
+
def get_border_color(direction)
|
|
836
|
+
validate_worksheet
|
|
837
|
+
get_cell_border.get_edge_color(direction)
|
|
838
|
+
end
|
|
839
|
+
|
|
783
840
|
def change_horizontal_alignment(alignment = 'center')
|
|
784
841
|
validate_worksheet
|
|
785
842
|
self.style_index = workbook.modify_alignment(self.style_index) { |a| a.horizontal = alignment }
|
|
@@ -800,6 +857,12 @@ module RubyXL
|
|
|
800
857
|
self.style_index = workbook.modify_border(self.style_index, direction, weight)
|
|
801
858
|
end
|
|
802
859
|
|
|
860
|
+
def change_border_color(direction, color)
|
|
861
|
+
validate_worksheet
|
|
862
|
+
Color.validate_color(color)
|
|
863
|
+
self.style_index = workbook.modify_border_color(self.style_index, direction, color)
|
|
864
|
+
end
|
|
865
|
+
|
|
803
866
|
def is_italicized()
|
|
804
867
|
validate_worksheet
|
|
805
868
|
get_cell_font.is_italic
|
|
@@ -6,6 +6,14 @@ module RubyXL
|
|
|
6
6
|
class BorderEdge < OOXMLObject
|
|
7
7
|
define_attribute(:style, RubyXL::ST_BorderStyle, :default => 'none')
|
|
8
8
|
define_child_node(RubyXL::Color)
|
|
9
|
+
|
|
10
|
+
def set_rgb_color(font_color)
|
|
11
|
+
self.color = RubyXL::Color.new(:rgb => font_color.to_s)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def get_rgb_color
|
|
15
|
+
color && color.rgb
|
|
16
|
+
end
|
|
9
17
|
end
|
|
10
18
|
|
|
11
19
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html
|
|
@@ -28,7 +36,27 @@ module RubyXL
|
|
|
28
36
|
end
|
|
29
37
|
|
|
30
38
|
def set_edge_style(direction, style)
|
|
31
|
-
self.send(
|
|
39
|
+
edge = self.send(direction)
|
|
40
|
+
if edge
|
|
41
|
+
edge.style = style
|
|
42
|
+
else
|
|
43
|
+
self.send("#{direction}=", RubyXL::BorderEdge.new(:style => style))
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def get_edge_color(direction)
|
|
48
|
+
edge = self.send(direction)
|
|
49
|
+
edge && edge.get_rgb_color
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def set_edge_color(direction, color)
|
|
53
|
+
edge = self.send(direction)
|
|
54
|
+
if edge
|
|
55
|
+
edge.set_rgb_color(color)
|
|
56
|
+
else
|
|
57
|
+
self.send("#{direction}=", RubyXL::BorderEdge.new)
|
|
58
|
+
self.send(direction).set_rgb_color(color)
|
|
59
|
+
end
|
|
32
60
|
end
|
|
33
61
|
end
|
|
34
62
|
|
|
@@ -15,13 +15,13 @@ module RubyXL
|
|
|
15
15
|
|
|
16
16
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_authors-1.html
|
|
17
17
|
class CommentList < OOXMLContainerObject
|
|
18
|
-
define_child_node(RubyXL::Comment, :collection =>
|
|
18
|
+
define_child_node(RubyXL::Comment, :collection => [0..-1])
|
|
19
19
|
define_element_name 'commentList'
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_authors-1.html
|
|
23
23
|
class Authors < OOXMLContainerObject
|
|
24
|
-
define_child_node(RubyXL::StringNode, :node_name => :author, :collection =>
|
|
24
|
+
define_child_node(RubyXL::StringNode, :node_name => :author, :collection => [0..-1])
|
|
25
25
|
define_element_name 'authors'
|
|
26
26
|
end
|
|
27
27
|
|
data/lib/rubyXL/objects/font.rb
CHANGED
|
@@ -27,7 +27,7 @@ module RubyXL
|
|
|
27
27
|
define_element_name 'font'
|
|
28
28
|
|
|
29
29
|
def is_italic
|
|
30
|
-
i &&
|
|
30
|
+
i && i.val
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def set_italic(val)
|
|
@@ -35,7 +35,7 @@ module RubyXL
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def is_bold
|
|
38
|
-
b &&
|
|
38
|
+
b && b.val
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def set_bold(val)
|
|
@@ -43,7 +43,7 @@ module RubyXL
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
def is_underlined
|
|
46
|
-
u &&
|
|
46
|
+
u && u.val
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
def set_underline(val)
|
|
@@ -51,7 +51,7 @@ module RubyXL
|
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def is_strikethrough
|
|
54
|
-
strike &&
|
|
54
|
+
strike && strike.val
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
def set_strikethrough(val)
|
data/rdoc/README_rdoc.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>README - rubyXL 3.3.
|
|
7
|
+
<title>README - rubyXL 3.3.22</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "./";
|
|
@@ -193,6 +193,7 @@ preserving as much of the structure as possible.</p>
|
|
|
193
193
|
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">horizontal_alignment</span>
|
|
194
194
|
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">vertical_alignment</span>
|
|
195
195
|
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">get_border</span>(:<span class="ruby-identifier">top</span>)
|
|
196
|
+
<span class="ruby-identifier">cell</span>.<span class="ruby-identifier">get_border_color</span>(:<span class="ruby-identifier">top</span>)
|
|
196
197
|
</pre>
|
|
197
198
|
|
|
198
199
|
<h4 id="label-Wrappers+for+accessing+Row+properties+">Wrappers for accessing Row properties <span><a href="#label-Wrappers+for+accessing+Row+properties+">¶</a> <a href="#top">↑</a></span></h4>
|
|
@@ -210,6 +211,7 @@ object model.</p>
|
|
|
210
211
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-value">0</span>, <span class="ruby-keyword">true</span>)
|
|
211
212
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_row_alignment</span>(<span class="ruby-value">0</span>, <span class="ruby-keyword">false</span>)
|
|
212
213
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_row_border</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">right</span>)
|
|
214
|
+
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_row_border_color</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">right</span>)
|
|
213
215
|
</pre>
|
|
214
216
|
|
|
215
217
|
<h4 id="label-Accessing+column+properties">Accessing column properties<span><a href="#label-Accessing+column+properties">¶</a> <a href="#top">↑</a></span></h4>
|
|
@@ -227,6 +229,7 @@ object model.</p>
|
|
|
227
229
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_column_alignment</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">horizontal</span>)
|
|
228
230
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_column_alignment</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">vertical</span>)
|
|
229
231
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_column_border</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">right</span>)
|
|
232
|
+
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">get_column_border_color</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">right</span>)
|
|
230
233
|
</pre>
|
|
231
234
|
|
|
232
235
|
<h4 id="label-Table+reading">Table reading<span><a href="#label-Table+reading">¶</a> <a href="#top">↑</a></span></h4>
|
|
@@ -287,6 +290,10 @@ You should access and iterate through rows and cells directly:</p>
|
|
|
287
290
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">sheet_data</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">change_border</span>(:<span class="ruby-identifier">top</span>, <span class="ruby-string">'thin'</span>) <span class="ruby-comment"># Sets A1 to have a top, thin border</span>
|
|
288
291
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_row_border</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">left</span>, <span class="ruby-string">'hairline'</span>) <span class="ruby-comment"># Sets first row to have a left, hairline border</span>
|
|
289
292
|
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_column_border</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">diagonal</span>, <span class="ruby-string">'medium'</span>) <span class="ruby-comment"># Sets first column to have diagonal, medium border</span>
|
|
293
|
+
|
|
294
|
+
<span class="ruby-comment"># Set the border style first so there's something to color.</span>
|
|
295
|
+
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_row_border_color</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">top</span>, <span class="ruby-string">'0ba53d'</span>) <span class="ruby-comment"># Sets first row to have a green top border</span>
|
|
296
|
+
<span class="ruby-identifier">worksheet</span>.<span class="ruby-identifier">change_column_border_color</span>(<span class="ruby-value">0</span>, :<span class="ruby-identifier">top</span>, <span class="ruby-string">'0ba53d'</span>) <span class="ruby-comment"># Sets first column to have a green top border</span>
|
|
290
297
|
</pre>
|
|
291
298
|
|
|
292
299
|
<h4 id="label-Changing+Alignment">Changing Alignment<span><a href="#label-Changing+Alignment">¶</a> <a href="#top">↑</a></span></h4>
|
data/rdoc/RubyXL.html
CHANGED
data/rdoc/RubyXL/AExtension.html
CHANGED
data/rdoc/RubyXL/Alignment.html
CHANGED
data/rdoc/RubyXL/Authors.html
CHANGED
data/rdoc/RubyXL/AutoFilter.html
CHANGED
data/rdoc/RubyXL/Border.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>class RubyXL::Border - rubyXL 3.3.
|
|
7
|
+
<title>class RubyXL::Border - rubyXL 3.3.22</title>
|
|
8
8
|
|
|
9
9
|
<script type="text/javascript">
|
|
10
10
|
var rdoc_rel_prefix = "../";
|
|
@@ -70,8 +70,12 @@
|
|
|
70
70
|
|
|
71
71
|
<ul class="link-list" role="directory">
|
|
72
72
|
|
|
73
|
+
<li ><a href="#method-i-get_edge_color">#get_edge_color</a>
|
|
74
|
+
|
|
73
75
|
<li ><a href="#method-i-get_edge_style">#get_edge_style</a>
|
|
74
76
|
|
|
77
|
+
<li ><a href="#method-i-set_edge_color">#set_edge_color</a>
|
|
78
|
+
|
|
75
79
|
<li ><a href="#method-i-set_edge_style">#set_edge_style</a>
|
|
76
80
|
|
|
77
81
|
</ul>
|
|
@@ -111,6 +115,40 @@ href="http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html">www.schemacent
|
|
|
111
115
|
</header>
|
|
112
116
|
|
|
113
117
|
|
|
118
|
+
<div id="method-i-get_edge_color" class="method-detail ">
|
|
119
|
+
|
|
120
|
+
<div class="method-heading">
|
|
121
|
+
<span class="method-name">get_edge_color</span><span
|
|
122
|
+
class="method-args">(direction)</span>
|
|
123
|
+
|
|
124
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
125
|
+
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
<div class="method-description">
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
<div class="method-source-code" id="get_edge_color-source">
|
|
137
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 47</span>
|
|
138
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_edge_color</span>(<span class="ruby-identifier">direction</span>)
|
|
139
|
+
<span class="ruby-identifier">edge</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>)
|
|
140
|
+
<span class="ruby-identifier">edge</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">edge</span>.<span class="ruby-identifier">get_rgb_color</span>
|
|
141
|
+
<span class="ruby-keyword">end</span></pre>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
|
|
114
152
|
<div id="method-i-get_edge_style" class="method-detail ">
|
|
115
153
|
|
|
116
154
|
<div class="method-heading">
|
|
@@ -130,7 +168,7 @@ href="http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html">www.schemacent
|
|
|
130
168
|
|
|
131
169
|
|
|
132
170
|
<div class="method-source-code" id="get_edge_style-source">
|
|
133
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line
|
|
171
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 33</span>
|
|
134
172
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_edge_style</span>(<span class="ruby-identifier">direction</span>)
|
|
135
173
|
<span class="ruby-identifier">edge</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>)
|
|
136
174
|
<span class="ruby-identifier">edge</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">edge</span>.<span class="ruby-identifier">style</span>
|
|
@@ -142,6 +180,45 @@ href="http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html">www.schemacent
|
|
|
142
180
|
|
|
143
181
|
|
|
144
182
|
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
<div id="method-i-set_edge_color" class="method-detail ">
|
|
187
|
+
|
|
188
|
+
<div class="method-heading">
|
|
189
|
+
<span class="method-name">set_edge_color</span><span
|
|
190
|
+
class="method-args">(direction, color)</span>
|
|
191
|
+
|
|
192
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
193
|
+
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<div class="method-description">
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
<div class="method-source-code" id="set_edge_color-source">
|
|
205
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 52</span>
|
|
206
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_edge_color</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">color</span>)
|
|
207
|
+
<span class="ruby-identifier">edge</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>)
|
|
208
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">edge</span>
|
|
209
|
+
<span class="ruby-identifier">edge</span>.<span class="ruby-identifier">set_rgb_color</span>(<span class="ruby-identifier">color</span>)
|
|
210
|
+
<span class="ruby-keyword">else</span>
|
|
211
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">"#{direction}="</span>, <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BorderEdge</span>.<span class="ruby-identifier">new</span>)
|
|
212
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>).<span class="ruby-identifier">set_rgb_color</span>(<span class="ruby-identifier">color</span>)
|
|
213
|
+
<span class="ruby-keyword">end</span>
|
|
214
|
+
<span class="ruby-keyword">end</span></pre>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
145
222
|
</div>
|
|
146
223
|
|
|
147
224
|
|
|
@@ -164,9 +241,14 @@ href="http://www.schemacentral.com/sc/ooxml/e-ssml_border-2.html">www.schemacent
|
|
|
164
241
|
|
|
165
242
|
|
|
166
243
|
<div class="method-source-code" id="set_edge_style-source">
|
|
167
|
-
<pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line
|
|
244
|
+
<pre><span class="ruby-comment"># File lib/rubyXL/objects/border.rb, line 38</span>
|
|
168
245
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_edge_style</span>(<span class="ruby-identifier">direction</span>, <span class="ruby-identifier">style</span>)
|
|
169
|
-
<span class="ruby-
|
|
246
|
+
<span class="ruby-identifier">edge</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">direction</span>)
|
|
247
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">edge</span>
|
|
248
|
+
<span class="ruby-identifier">edge</span>.<span class="ruby-identifier">style</span> = <span class="ruby-identifier">style</span>
|
|
249
|
+
<span class="ruby-keyword">else</span>
|
|
250
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">"#{direction}="</span>, <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BorderEdge</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:style</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">style</span>))
|
|
251
|
+
<span class="ruby-keyword">end</span>
|
|
170
252
|
<span class="ruby-keyword">end</span></pre>
|
|
171
253
|
</div>
|
|
172
254
|
|