Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Passing style-able objects

$
0
0
Hi, everyone.

I'm working on a project where I am applying the same styling to various things. Sometimes a row, sometimes a cell, sometimes a range. I've been trying to find a way to write a single method that would accept all of those things.

Is there an interface that they all implement, or some other way to maybe do it?

private void applyFormatting(something target)
{
// target.style.border... etc. etc.
}

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>