/// <summary>
        /// Selects the font family.
        /// </summary>
        /// <param name="family">Family.</param>
        private void SelectFontFamily(string family)
        {
            var items = TypefaceDropdown.Items();

            foreach (NSMenuItem item in items)
            {
                // Found?
                if (family == item.Title)
                {
                    TypefaceDropdown.SelectItem(item);
                    return;
                }
            }

            // Not found, select first item
            TypefaceDropdown.SelectItem(0);
        }
        /// <summary>
        /// Initialize this instance.
        /// </summary>
        public void Initialize()
        {
            // Respond to size change
            Size.EditingEnded += (sender, e) =>
            {
                // Save undo point
                DesignSurface.SaveUndoPoint();

                // Save changes
                SelectedStyle.TextSize = Size.FloatValue;
                RaiseShapeModified();
            };

            // Populate the list of available fonts
            foreach (string family in NSFontManager.SharedFontManager.AvailableFontFamilies)
            {
                TypefaceDropdown.AddItem(family);
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (TypefaceDropdown != null)
            {
                TypefaceDropdown.Dispose();
                TypefaceDropdown = null;
            }

            if (WeightDropdown != null)
            {
                WeightDropdown.Dispose();
                WeightDropdown = null;
            }

            if (Size != null)
            {
                Size.Dispose();
                Size = null;
            }

            if (Alignment != null)
            {
                Alignment.Dispose();
                Alignment = null;
            }

            if (StrikeThruCheckbox != null)
            {
                StrikeThruCheckbox.Dispose();
                StrikeThruCheckbox = null;
            }

            if (UnderlineCheckbox != null)
            {
                UnderlineCheckbox.Dispose();
                UnderlineCheckbox = null;
            }

            if (VerticalCheckbox != null)
            {
                VerticalCheckbox.Dispose();
                VerticalCheckbox = null;
            }

            if (ScaleSlider != null)
            {
                ScaleSlider.Dispose();
                ScaleSlider = null;
            }

            if (ScaleValue != null)
            {
                ScaleValue.Dispose();
                ScaleValue = null;
            }

            if (SkewSlider != null)
            {
                SkewSlider.Dispose();
                SkewSlider = null;
            }

            if (SkewValue != null)
            {
                SkewValue.Dispose();
                SkewValue = null;
            }
        }