• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TextPosition类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中TextPosition的典型用法代码示例。如果您正苦于以下问题:C# TextPosition类的具体用法?C# TextPosition怎么用?C# TextPosition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TextPosition类属于命名空间,在下文中一共展示了TextPosition类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ScopeGuardStatement

 public ScopeGuardStatement(TextPosition tp, ScopeGuardType type, ProgramContext block)
     : base(tp)
 {
     ScopeGuardType = type;
     Block = block;
     AppendChild(Block);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:7,代码来源:ScopeGuardStatement.cs


示例2: XmlDeclarationToken

 /// <summary>
 /// Creates a new XML declaration token.
 /// </summary>
 public XmlDeclarationToken(TextPosition position)
     : base(XmlTokenType.Declaration, position)
 {
     _version = String.Empty;
     _encoding = null;
     _standalone = false;
 }
开发者ID:fjwuyongzhi,项目名称:AngleSharp,代码行数:10,代码来源:XmlDeclarationToken.cs


示例3: WithExpression

 public WithExpression(TextPosition cp, Element access, ProgramContext block)
 {
     Access = access;
     Block = block;
     AppendChild(Block);
     AppendChild(Access);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:7,代码来源:WithExpression.cs


示例4: EnumSymbol

 protected EnumSymbol(TextPosition tp, string name, ProgramContext block)
     : base(tp)
 {
     Name = name;
     Block = block;
     AppendChild(Block);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:7,代码来源:EnumSymbol.cs


示例5: HtmlDoctypeToken

 /// <summary>
 /// Creates a new DOCTYPE token with the quirks mode set initially.
 /// </summary>
 /// <param name="quirksForced">The state of the force-quirks flag.</param>
 /// <param name="position">The token's position.</param>
 public HtmlDoctypeToken(Boolean quirksForced, TextPosition position)
     : base(HtmlTokenType.Doctype, position)
 {
     _publicIdentifier = null;
     _systemIdentifier = null;
     _quirks = quirksForced;
 }
开发者ID:fjwuyongzhi,项目名称:AngleSharp,代码行数:12,代码来源:HtmlDoctypeToken.cs


示例6: Location

        public Location(ISourceText file, TextPosition position)
        {
            Requires.NotNull(file, nameof(file));

            File = file;
            Position = position;
        }
开发者ID:adamant-deprecated,项目名称:AdamantExploratoryCompiler,代码行数:7,代码来源:Location.cs


示例7: InsertTextCommand

        public InsertTextCommand(
			TextPosition textPosition,
			string text)
            : base(textPosition)
        {
            Text = text;
        }
开发者ID:dmoonfire,项目名称:author-intrusion-cil,代码行数:7,代码来源:InsertTextCommand.cs


示例8: MemberAccess

 public MemberAccess(TextPosition tp, Element acs, string member)
     : base(tp)
 {
     Access = acs;
     Member = member;
     AppendChild(Access);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:7,代码来源:MemberAccess.cs


示例9: CssRangeToken

 /// <summary>
 /// Creates a new CSS range token.
 /// </summary>
 /// <param name="range">The selected range string.</param>
 /// <param name="position">The token's position.</param>
 public CssRangeToken(String range, TextPosition position)
     : base(CssTokenType.Range, range, position)
 {
     _start = range.Replace(Symbols.QuestionMark, '0');
     _end = range.Replace(Symbols.QuestionMark, 'F');
     _range = GetRange();
 }
开发者ID:Wojdav,项目名称:AngleSharp,代码行数:12,代码来源:CssRangeToken.cs


示例10: AliasDeclaration

 public AliasDeclaration(TextPosition tp, Identifier from, Identifier to)
     : base(tp)
 {
     From = from;
     To = to;
     Name = To == null ? string.Empty : To.Value;
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:7,代码来源:AliasDeclaration.cs


示例11: MonadicExpression

 protected MonadicExpression(TextPosition tp, TokenType op, Element exp)
     : base(tp)
 {
     Operator = op;
     Exp = exp;
     AppendChild(Exp);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:7,代码来源:MonadicExpression.cs


示例12: VerticalUpPoint

 public void VerticalUpPoint(TickBarPlacement placement, string expected)
 {
     var textPositionOptions = new TextPositionOptions(  placement, TextOrientation.VerticalUp);
     var textSize = new Size(this.text.Width, this.text.Height);
     var textPosition = new TextPosition(textSize,textPositionOptions, new Point(0, 0), 0);
     Assert.AreEqual(expected, textPosition.Point.ToString("F0"));
 }
开发者ID:JackWangCUMT,项目名称:Gu.Gauges,代码行数:7,代码来源:TextPositionTests.cs


示例13: XmlDoctypeToken

 /// <summary>
 /// Creates a new DOCTYPE token.
 /// </summary>
 public XmlDoctypeToken(TextPosition position)
     : base(XmlTokenType.Doctype, position)
 {
     _name = null;
     _publicIdentifier = null;
     _systemIdentifier = null;
 }
开发者ID:fjwuyongzhi,项目名称:AngleSharp,代码行数:10,代码来源:XmlDoctypeToken.cs


示例14: XmlEntityToken

 /// <summary>
 /// Creates a new entity token.
 /// </summary>
 public XmlEntityToken(TextPosition position, String value, Boolean numeric = false, Boolean hex = false)
     : base(XmlTokenType.Entity, position)
 {
     _numeric = numeric;
     _hex = hex;
     _value = value;
 }
开发者ID:JBTech,项目名称:AngleSharp,代码行数:10,代码来源:XmlEntityToken.cs


示例15: AssociatePair

 public AssociatePair(TextPosition tp, Element left, Element right)
     : base(tp)
 {
     Left = left;
     Right = right;
     AppendChild(Left);
     AppendChild(Right);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:8,代码来源:AssociatePair.cs


示例16: CatchStatement

 public CatchStatement(TextPosition tp, Element use, ProgramContext block)
     : base(tp)
 {
     Use = use;
     Block = block;
     AppendChild(Use);
     AppendChild(Block);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:8,代码来源:CatchStatement.cs


示例17: VariantSymbol

 protected VariantSymbol(TextPosition tp, VariantType type, Element def = null)
     : base(tp)
 {
     VariantType = type;
     DefaultValue = def;
     AppendChild(DefaultValue);
     IsInitialize = true;
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:8,代码来源:VariantSymbol.cs


示例18: TuplePair

 public TuplePair(TextPosition tp, Identifier tag, Element exp)
     : base(tp)
 {
     Tag = tag;
     Exp = exp;
     AppendChild(Tag);
     AppendChild(Exp);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:8,代码来源:TuplePair.cs


示例19: CallExpression

 public CallExpression(TextPosition tp, Element acs, TupleLiteral args)
     : base(tp)
 {
     Access = acs;
     Arguments = args;
     AppendChild(Access);
     AppendChild(Arguments);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:8,代码来源:CallExpression.cs


示例20: TemplateInstanceExpression

 public TemplateInstanceExpression(TextPosition tp, Element acs, TupleLiteral args)
     : base(tp)
 {
     Access = acs;
     DecParameters = args;
     AppendChild(Access);
     AppendChild(DecParameters);
 }
开发者ID:B-head,项目名称:Dreit-prototype,代码行数:8,代码来源:TemplateInstanceExpression.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# TextRange类代码示例发布时间:2022-05-24
下一篇:
C# TextPoint类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap