Class StringFragmentEventArgs
Event argument with IStringFragment property.
Inheritance
System.Object
StringFragmentEventArgs
Namespace: EPiServer.Core.Html.StringParsing
Assembly: EPiServer.dll
Version: 12.0.3Syntax
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 |