public int GetBorderWidth(Style style, StyleInstance styleInstance, bool hasScope) { if (style != null) { Border border = style.Border; if (border != null && (!MappingHelper.IsPropertyExpression(border.Width) || hasScope)) { return(MappingHelper.GetStyleBorderWidth(border, this.m_mapMapper.DpiX)); } } return(MappingHelper.GetDefaultBorderWidth(this.m_mapMapper.DpiX)); }