public static FontStyle FromBaseObject(BaseObject baseObj) { if (baseObj == null || baseObj.NativeObject == IntPtr.Zero) { return(null); } FontStyle obj = baseObj as FontStyle; if (object.Equals(obj, null)) { obj = new FontStyle(CreatedWhenConstruct.CWC_NotToCreate); obj.BindNativeObject(baseObj.NativeObject, "FontStyle"); obj.IncreaseCast(); } return(obj); }