Class StringFragmentEventArgs
Event argument with IStringFragment property.
Inheritance
System.Object
System.EventArgs
StringFragmentEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core.Html.StringParsing
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public class StringFragmentEventArgs : EventArgs
Constructors
StringFragmentEventArgs(IStringFragment, Int32)
Initializes a new instance of the StringFragmentEventArgs class.
Declaration
public StringFragmentEventArgs(IStringFragment stringFragment, int newStartingIndex)
Parameters
Type | Name | Description |
---|---|---|
IStringFragment | stringFragment | The string fragment added to the collection. |
System.Int32 | newStartingIndex | The index where the |
StringFragmentEventArgs(IStringFragment, Int32, IStringFragment, Int32)
Initializes a new instance of the StringFragmentEventArgs class.
Declaration
public StringFragmentEventArgs(IStringFragment oldStringFragment, int oldStartingIndex, IStringFragment newStringFragment, int newStartingIndex)
Parameters
Type | Name | Description |
---|---|---|
IStringFragment | oldStringFragment | The old string fragment that has been removed or altered. |
System.Int32 | oldStartingIndex | Start index of the |
IStringFragment | newStringFragment | The string fragment added to the collection or the new version of an altered fragment. |
System.Int32 | newStartingIndex | The index where the |
Properties
NewStartingIndex
Gets the index at which the change occurred.
Declaration
public int NewStartingIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
NewStringFragment
Gets the string fragment.
Declaration
public IStringFragment NewStringFragment { get; }
Property Value
Type | Description |
---|---|
IStringFragment |
OldStartingIndex
Gets the index at which an item was removed or updated
Declaration
public int OldStartingIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
OldStringFragment
Gets the old string fragment.
Declaration
public IStringFragment OldStringFragment { get; }
Property Value
Type | Description |
---|---|
IStringFragment |