Class StringFragmentEventArgs
Event argument with IString
Inheritance
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 String
Declaration
public StringFragmentEventArgs(IStringFragment stringFragment, int newStartingIndex)
Parameters
Type | Name | Description |
---|---|---|
IString |
stringFragment | The string fragment added to the collection. |
System. |
newStartingIndex | The index where the |
StringFragmentEventArgs(IStringFragment, Int32, IStringFragment, Int32)
Initializes a new instance of the String
Declaration
public StringFragmentEventArgs(IStringFragment oldStringFragment, int oldStartingIndex, IStringFragment newStringFragment, int newStartingIndex)
Parameters
Type | Name | Description |
---|---|---|
IString |
oldStringFragment | The old string fragment that has been removed or altered. |
System. |
oldStartingIndex | Start index of the |
IString |
newStringFragment | The string fragment added to the collection or the new version of an altered fragment. |
System. |
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. |
NewStringFragment
Gets the string fragment.
Declaration
public IStringFragment NewStringFragment { get; }
Property Value
Type | Description |
---|---|
IString |
OldStartingIndex
Gets the index at which an item was removed or updated
Declaration
public int OldStartingIndex { get; }
Property Value
Type | Description |
---|---|
System. |
OldStringFragment
Gets the old string fragment.
Declaration
public IStringFragment OldStringFragment { get; }
Property Value
Type | Description |
---|---|
IString |