Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class OffsetAttribute

    Default implementation of IOffsetAttribute.

    Inheritance
    System.Object
    Attribute
    OffsetAttribute
    Implements
    IOffsetAttribute
    IAttribute
    Inherited Members
    Attribute.ReflectAsString(Boolean)
    Attribute.ReflectWith(IAttributeReflector)
    Attribute.ToString()
    Attribute.Clone()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Analysis.TokenAttributes
    Assembly: Lucene.Net.dll
    Syntax
    public class OffsetAttribute : Attribute, IOffsetAttribute, IAttribute

    Constructors

    | Improve this Doc View Source

    OffsetAttribute()

    Initialize this attribute with startOffset and endOffset of 0.

    Declaration
    public OffsetAttribute()

    Properties

    | Improve this Doc View Source

    EndOffset

    Declaration
    public virtual int EndOffset { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    StartOffset

    Declaration
    public virtual int StartOffset { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Clear()

    Declaration
    public override void Clear()
    Overrides
    Attribute.Clear()
    | Improve this Doc View Source

    CopyTo(IAttribute)

    Declaration
    public override void CopyTo(IAttribute target)
    Parameters
    Type Name Description
    IAttribute target
    Overrides
    Attribute.CopyTo(IAttribute)
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    System.Object other
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()
    | Improve this Doc View Source

    SetOffset(Int32, Int32)

    Declaration
    public virtual void SetOffset(int startOffset, int endOffset)
    Parameters
    Type Name Description
    System.Int32 startOffset
    System.Int32 endOffset

    Implements

    IOffsetAttribute
    IAttribute
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.