public Object this[styleSideDirection side, styleFourSideParameter param] { get { styleSide sd = this[side]; return(sd[param]); } set { styleSide sd = this[side]; sd[param] = value; } }
/// <summary> /// Gets the <see cref="styleSide"/> with the specified key. /// </summary> /// <value> /// The <see cref="styleSide"/>. /// </value> /// <param name="key">The key.</param> /// <returns></returns> public styleSide this[styleSideDirection key] { get { switch (key) { case styleSideDirection.bottom: return(bottom); break; case styleSideDirection.left: return(left); break; case styleSideDirection.right: return(right); break; case styleSideDirection.top: return(top); break; } return(left); } set { switch (key) { case styleSideDirection.bottom: bottom = value; break; case styleSideDirection.left: left = value; break; case styleSideDirection.right: right = value; break; case styleSideDirection.top: top = value; break; } } }
public styleSide(styleSideDirection __direction) { direction = __direction; }