Open.Core.Css.GetBorderEdge C# (CSharp) Method

GetBorderEdge() private static method

private static GetBorderEdge ( jQueryObject element, System.Edge edge ) : int
element jQueryObject
edge System.Edge
return int
        private static int GetBorderEdge(jQueryObject element, Edge edge)
        {
            if (Script.IsNullOrUndefined(element)) return 0;
            string value = element.GetCSS(string.Format("border-{0}-width", edge.ToString().ToLocaleLowerCase()));
            if (string.IsNullOrEmpty(value)) return 0;
            if (!value.EndsWith(Px)) return 0;
            return Int32.Parse(value);
        }