コード例 #1
0
        bool UpdateAccessibilityTimer()
        {
            updateAccessibilityId = 0;

            if (accessibles == null)
            {
                accessibles = new Dictionary <FoldSegment, FoldingAccessible> ();
            }
            foreach (var a in accessibles.Values)
            {
                Accessible.RemoveAccessibleChild(a.Accessible);
                a.Dispose();
            }
            accessibles.Clear();

            // Add any folds
            var segments = editor.Document.FoldSegments;

            foreach (var f in segments)
            {
                var accessible = new FoldingAccessible(f, this, editor);
                accessibles [f] = accessible;

                Accessible.AddAccessibleChild(accessible.Accessible);
            }

            return(false);
        }
コード例 #2
0
        void UpdateAccessibility()
        {
            if (!IdeTheme.AccessibilityEnabled)
            {
                return;
            }

            if (accessibles == null)
            {
                accessibles = new Dictionary <FoldSegment, FoldingAccessible> ();
            }
            foreach (var a in accessibles.Values)
            {
                Accessible.RemoveAccessibleChild(a.Accessible);
                a.Dispose();
            }
            accessibles.Clear();

            // Add any folds
            var segments = editor.Document.FoldSegments;

            foreach (var f in segments)
            {
                var accessible = new FoldingAccessible(f, this, editor);
                accessibles [f] = accessible;

                Accessible.AddAccessibleChild(accessible.Accessible);
            }
        }