当前位置: 首页>>代码示例>>C#>>正文


C# ICSharpCode.InsertString方法代码示例

本文整理汇总了C#中ICSharpCode.InsertString方法的典型用法代码示例。如果您正苦于以下问题:C# ICSharpCode.InsertString方法的具体用法?C# ICSharpCode.InsertString怎么用?C# ICSharpCode.InsertString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ICSharpCode的用法示例。


在下文中一共展示了ICSharpCode.InsertString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InsertAction

 public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
 {
     if(ch == '1')
         textArea.InsertString(String.Format("{0}", Name));
     else
         textArea.InsertString(String.Format("{0}.{1}", Schema, Name));
     return false;
 }
开发者ID:GUrbiola,项目名称:Ez_SQL,代码行数:8,代码来源:Table.cs

示例2: InsertAction

 public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
 {
     textArea.InsertString(String.Format("{0}", Name));
     return false;
 }
开发者ID:GUrbiola,项目名称:Ez_SQL,代码行数:5,代码来源:Parameter.cs

示例3: InsertAction

        public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
        {
            string ToWrite = String.Format("EXEC {0}.{1} {2}", Schema, Name, Environment.NewLine);
            foreach (ISqlChild Ch in Childs)
                ToWrite += String.Format("{0} = ''{3} --{1}{2}", Ch.Name, Ch.Type, Environment.NewLine, (Childs.IndexOf(Ch) == Childs.Count - 1 ? "" : ","));
            if (ToWrite.EndsWith(", "))
                ToWrite = ToWrite.Substring(0, ToWrite.Length - 2);

            textArea.InsertString(ToWrite);
            return false;
        }
开发者ID:GUrbiola,项目名称:Ez_SQL,代码行数:11,代码来源:Procedure.cs

示例4: InsertAction

        public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
        {
            string ToWrite;
            if (ch == '1')
                ToWrite = String.Format("{0} (", Name);
            else
                ToWrite = String.Format("{0}.{1} (", Schema, Name);

            foreach (ISqlChild Ch in Childs.Where(X => X.Kind == ChildType.Parameter))
                ToWrite += String.Format("{0} /*{1}*/, ", Ch.Name, Ch.Type, Environment.NewLine);
            if (ToWrite.EndsWith(", "))
                ToWrite = ToWrite.Substring(0, ToWrite.Length - 2);

            textArea.InsertString(ToWrite + ")");
            return false;
        }
开发者ID:GUrbiola,项目名称:Ez_SQL,代码行数:16,代码来源:TableFunction.cs

示例5: InsertAction

 public bool InsertAction(ICSharpCode.TextEditor.TextArea textArea, char ch)
 {
     string completion = proposal.Completion;
     //if (DotStart)
     //    completion = string.Concat(".", completion);
     textArea.InsertString(completion);
     return true;
 }
开发者ID:mausch,项目名称:NHWorkbench,代码行数:8,代码来源:HQLCompletionData.cs


注:本文中的ICSharpCode.InsertString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。