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.
}
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.
}