private void SyncEdge(Edge edge)
{
// Setup initial conditions.
if (inner == null) return;
int value = GetValue(edge);
// Run the value through the modifier delegate.
if (!Script.IsNullOrUndefined(onBeforeSync))
{
value = onBeforeSync(edge, value);
}
// Apply the CSS.
inner.CSS(edge.ToString().ToLowerCase(), value + Css.Px);
}
#endregion