ACAT.Lib.Core.Utility.Windows.GetOpacity C# (CSharp) Method

GetOpacity() public static method

Gets the transparency of a form This is just a helper function that takes care of cross-thread invokations that would result in .NET exceptions.
public static GetOpacity ( Form form ) : double
form System.Windows.Forms.Form Form object
return double
        public static double GetOpacity(Form form)
        {
            if (form.InvokeRequired)
            {
                return (double)form.Invoke(new getOpacity(GetOpacity), form);
            }

            return form.Opacity;
        }