Skip to content

Simplify cell merging? #51

@misterspeedy

Description

@misterspeedy

Considering some changes which would "demote" cell merging behaviour to a CellProperty, e.g.

#r "nuget: ClosedXML"
#r "../FsExcel/bin/Debug/netstandard2.1/FsExcel.dll"
let savePath = "/temp"

open System
open FsExcel 
open ClosedXML.Excel

[
    Cell [ 
        String "Hello" 
        Merge(3, 4)
        VerticalAlignment Middle
    ]
]
|> Render.AsFile (System.IO.Path.Combine(savePath, "LocalDemo.xlsx"))

This has a few advantages:

  • simplifies the expression of ranges, which has got quite complicated
  • may mean that we don't have to have a separate concept of merged cell borders. (Current implementation puts borders around all populated cells, whether merged or not.)
  • might simplify the code and documentation generally.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions