示例#1
0
 public void FoldAll(FoldAction action)
 {
     _editor.FoldAll(action);
 }
示例#2
0
 /// <summary>
 /// Performs the specified fold action on the entire document.
 /// </summary>
 /// <param name="action">One of the <see cref="FoldAction" /> enumeration values.</param>
 /// <remarks>When using <see cref="FoldAction.Toggle" /> the first fold header in the document is examined to decide whether to expand or contract.</remarks>
 public void FoldAll(FoldAction action)
 {
     DirectMessage(NativeMethods.SCI_FOLDALL, new IntPtr((int)action));
 }
示例#3
0
        //public void ExpandChildren(int level)
        //{
        //}

        /// <summary>
        /// Performs the specified fold action on the current line and all child lines.
        /// </summary>
        /// <param name="action">One of the <see cref="FoldAction" /> enumeration values.</param>
        public void FoldChildren(FoldAction action)
        {
            scintilla.DirectMessage(NativeMethods.SCI_FOLDCHILDREN, new IntPtr(Index), new IntPtr((int)action));
        }
示例#4
0
 /// <summary>
 /// Performs the specified fold action on the current line.
 /// </summary>
 /// <param name="action">One of the <see cref="FoldAction" /> enumeration values.</param>
 public void FoldLine(FoldAction action)
 {
     scintilla.DirectMessage(NativeMethods.SCI_FOLDLINE, new IntPtr(Index), new IntPtr((int)action));
 }
示例#5
0
文件: Scintilla.cs 项目: jcaillon/3P
 //public void ExpandChildren(int level)
 //{
 //}
 /// <summary>
 /// Performs the specified fold action on the current line and all child lines.
 /// </summary>
 /// <param name="action">One of the FoldAction enumeration values.</param>
 public void FoldChildren(FoldAction action)
 {
     Sci.Send(SciMsg.SCI_FOLDCHILDREN, new IntPtr(Index), new IntPtr((int) action));
 }
示例#6
0
文件: Scintilla.cs 项目: jcaillon/3P
 /// <summary>
 /// Performs the specified fold action on the current line.
 /// </summary>
 /// <param name="action">One of the FoldAction enumeration values.</param>
 public void FoldLine(FoldAction action)
 {
     Sci.Send(SciMsg.SCI_FOLDLINE, new IntPtr(Index), new IntPtr((int) action));
 }
示例#7
0
文件: Line.cs 项目: uQr/ScintillaNET
 /// <summary>
 /// Performs the specified fold action on the current line.
 /// </summary>
 /// <param name="action">One of the <see cref="FoldAction" /> enumeration values.</param>
 public void FoldLine(FoldAction action)
 {
     scintilla.DirectMessage(NativeMethods.SCI_FOLDLINE, new IntPtr(Index), new IntPtr((int)action));
 }
示例#8
0
文件: Scintilla.cs 项目: jcaillon/3P
 /// <summary>
 /// Performs the specified fold action on the entire document.
 /// </summary>
 /// <param name="action">One of the FoldAction enumeration values.</param>
 /// <remarks>
 /// When using FoldAction.Toggle the first fold header in the document is examined to decide whether to expand or
 /// contract.
 /// </remarks>
 public static void FoldAll(FoldAction action)
 {
     Sci.Send(SciMsg.SCI_FOLDALL, new IntPtr((int) action));
 }
示例#9
0
文件: Line.cs 项目: uQr/ScintillaNET
        //public void ExpandChildren(int level)
        //{
        //}

        /// <summary>
        /// Performs the specified fold action on the current line and all child lines.
        /// </summary>
        /// <param name="action">One of the <see cref="FoldAction" /> enumeration values.</param>
        public void FoldChildren(FoldAction action)
        {
            scintilla.DirectMessage(NativeMethods.SCI_FOLDCHILDREN, new IntPtr(Index), new IntPtr((int)action));
        }
示例#10
0
 public void FoldLine(FoldAction action)
 {
 }
示例#11
0
文件: SciLine.cs 项目: zhitian/3P
 /// <summary>
 /// Performs the specified fold action on the current line.
 /// </summary>
 /// <param name="action">One of the FoldAction enumeration values.</param>
 public void FoldLine(FoldAction action)
 {
     Api.Send(SciMsg.SCI_FOLDLINE, new IntPtr(Index), new IntPtr((int)action));
 }
示例#12
0
文件: SciLine.cs 项目: zhitian/3P
            //public void ExpandChildren(int level)
            //{
            //}

            /// <summary>
            /// Performs the specified fold action on the current line and all child Api.Lines.
            /// </summary>
            /// <param name="action">One of the FoldAction enumeration values.</param>
            public void FoldChildren(FoldAction action)
            {
                Api.Send(SciMsg.SCI_FOLDCHILDREN, new IntPtr(Index), new IntPtr((int)action));
            }
示例#13
0
 public void FoldAll(FoldAction foldAction)
 {
     textArea.FoldAll(foldAction);
 }