コード例 #1
0
        public IWpfTextViewMargin CreateMargin(IWpfTextViewHost wpfTextViewHost, IWpfTextViewMargin marginContainer)
        {
            CurrentMargin = new EditorMargin(wpfTextViewHost);
            OutlineMargins.Add(wpfTextViewHost.TextView, CurrentMargin);

            wpfTextViewHost.TextView.Closed            += TextView_Closed;
            wpfTextViewHost.TextView.GotAggregateFocus += TextView_GotAggregateFocus;

            return(CurrentMargin);
        }
コード例 #2
0
ファイル: EdtiorMargin.cs プロジェクト: xianfeizhang/BabeLua
        public IWpfTextViewMargin CreateMargin(IWpfTextViewHost wpfTextViewHost, IWpfTextViewMargin marginContainer)
        {
            Babe.Lua.Package.DTEHelper.Current.SelectionPage = wpfTextViewHost.TextView.Selection;

            CurrentMargin = new EditorMargin(wpfTextViewHost);
            OutlineMargins.Add(wpfTextViewHost.TextView, CurrentMargin);

            wpfTextViewHost.TextView.Closed            += TextView_Closed;
            wpfTextViewHost.TextView.GotAggregateFocus += TextView_GotAggregateFocus;

            return(CurrentMargin);
        }
コード例 #3
0
ファイル: EdtiorMargin.cs プロジェクト: peterdocter/BabeLua
        public IWpfTextViewMargin CreateMargin(IWpfTextViewHost wpfTextViewHost, IWpfTextViewMargin marginContainer)
        {
            Babe.Lua.Package.DTEHelper.Current.SelectionPage = wpfTextViewHost.TextView.Selection;

            CurrentMargin = new EditorMargin(wpfTextViewHost);
            OutlineMargins.Add(wpfTextViewHost.TextView, CurrentMargin);

            wpfTextViewHost.TextView.Closed += TextView_Closed;
            wpfTextViewHost.TextView.GotAggregateFocus += TextView_GotAggregateFocus;

            return CurrentMargin;
        }