Channel9Downloader.Controls.FrameworkElementAdorner.DetermineHeight C# (CSharp) 메소드

DetermineHeight() 개인적인 메소드

Determine the height of the child.
private DetermineHeight ( ) : double
리턴 double
        private double DetermineHeight()
        {
            if (!double.IsNaN(PositionY))
            {
                return _child.DesiredSize.Height;
            }

            switch (_child.VerticalAlignment)
            {
                case VerticalAlignment.Top:
                    {
                        return _child.DesiredSize.Height;
                    }

                case VerticalAlignment.Bottom:
                    {
                        return _child.DesiredSize.Height;
                    }

                case VerticalAlignment.Center:
                    {
                        return _child.DesiredSize.Height;
                    }

                case VerticalAlignment.Stretch:
                    {
                        return AdornedElement.ActualHeight;
                    }
            }

            return 0.0;
        }