/// <summary> /// 获取停靠位置属性值 /// </summary> /// <param name="element"></param> /// <returns></returns> public static DockPosition GetDock(View element) { if (element == null) { throw new ArgumentNullException("element"); } return((DockPosition)element.GetValue(DockProperty)); }