Class TextFormatDefinitionStack
Represents a collection of ITextFormatDefinitionKeys.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Controls.SyntaxEditor.UI
Assembly: Telerik.WinControls.SyntaxEditor.dll
Syntax
public class TextFormatDefinitionStack : IEnumerable<ITextFormatDefinitionKey>, IEnumerable
Methods
AddAfter(String, String, TextFormatDefinition)
Adds the after.
Declaration
public bool AddAfter(string presentedFormatDefinitionName, string formatDefinitionName, TextFormatDefinition formatDefinition)
Parameters
System.String
presentedFormatDefinitionName
Name of the presented format definition. |
System.String
formatDefinitionName
Name of the format definition. |
TextFormatDefinition
formatDefinition
The format definition. |
Returns
System.Boolean
|
AddAfter(ITextFormatDefinitionKey, ITextFormatDefinitionKey, TextFormatDefinition)
Adds the after.
Declaration
public bool AddAfter(ITextFormatDefinitionKey presentedFormatDefinitionKey, ITextFormatDefinitionKey formatDefinitionKey, TextFormatDefinition formatDefinition)
Parameters
ITextFormatDefinitionKey
presentedFormatDefinitionKey
The presented format definition key. |
ITextFormatDefinitionKey
formatDefinitionKey
The format definition key. |
TextFormatDefinition
formatDefinition
The format definition. |
Returns
System.Boolean
|
AddBefore(String, String, TextFormatDefinition)
Adds the before.
Declaration
public bool AddBefore(string presentedFormatDefinitionName, string formatDefinitionName, TextFormatDefinition formatDefinition)
Parameters
System.String
presentedFormatDefinitionName
Name of the presented format definition. |
System.String
formatDefinitionName
Name of the format definition. |
TextFormatDefinition
formatDefinition
The format definition. |
Returns
System.Boolean
|
AddBefore(ITextFormatDefinitionKey, ITextFormatDefinitionKey, TextFormatDefinition)
Adds the before.
Declaration
public bool AddBefore(ITextFormatDefinitionKey presentedFormatDefinitionKey, ITextFormatDefinitionKey formatDefinitionKey, TextFormatDefinition formatDefinition)
Parameters
ITextFormatDefinitionKey
presentedFormatDefinitionKey
The presented format definition key. |
ITextFormatDefinitionKey
formatDefinitionKey
The format definition key. |
TextFormatDefinition
formatDefinition
The format definition. |
Returns
System.Boolean
|
AddFirst(String, TextFormatDefinition)
Adds the first.
Declaration
public void AddFirst(string formatDefinitionName, TextFormatDefinition formatDefinition)
Parameters
System.String
formatDefinitionName
Name of the format definition. |
TextFormatDefinition
formatDefinition
The format definition. |
AddFirst(ITextFormatDefinitionKey, TextFormatDefinition)
Adds the first.
Declaration
public void AddFirst(ITextFormatDefinitionKey formatDefinitionKey, TextFormatDefinition formatDefinition)
Parameters
ITextFormatDefinitionKey
formatDefinitionKey
The format definition key. |
TextFormatDefinition
formatDefinition
The format definition. |
AddLast(String, TextFormatDefinition)
Adds the last.
Declaration
public void AddLast(string formatDefinitionName, TextFormatDefinition formatDefinition)
Parameters
System.String
formatDefinitionName
Name of the format definition. |
TextFormatDefinition
formatDefinition
The format definition. |
AddLast(ITextFormatDefinitionKey, TextFormatDefinition)
Adds the last.
Declaration
public void AddLast(ITextFormatDefinitionKey formatDefinitionKey, TextFormatDefinition formatDefinition)
Parameters
ITextFormatDefinitionKey
formatDefinitionKey
The format definition key. |
TextFormatDefinition
formatDefinition
The format definition. |
Clear()
Clears this instance.
Declaration
public void Clear()
Contains(String)
Determines whether this instance contains the object.
Declaration
public bool Contains(string formatDefinitionName)
Parameters
System.String
formatDefinitionName
Name of the format definition. |
Returns
System.Boolean
|
Contains(ITextFormatDefinitionKey)
Determines whether this instance contains the object.
Declaration
public bool Contains(ITextFormatDefinitionKey formatDefinitionKey)
Parameters
ITextFormatDefinitionKey
formatDefinitionKey
The format definition key. |
Returns
System.Boolean
|
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<ITextFormatDefinitionKey> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<ITextFormatDefinitionKey>
A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
Implements
GetTextFormatDefinition(String)
Gets the text format definition.
Declaration
public TextFormatDefinition GetTextFormatDefinition(string formatDefinitionName)
Parameters
System.String
formatDefinitionName
Name of the format definition. |
Returns
TextFormatDefinition
TextFormatDefinition. |
GetTextFormatDefinition(ITextFormatDefinitionKey)
Gets the text format definition.
Declaration
public TextFormatDefinition GetTextFormatDefinition(ITextFormatDefinitionKey formatDefinitionKey)
Parameters
ITextFormatDefinitionKey
formatDefinitionKey
The format definition key. |
Returns
TextFormatDefinition
TextFormatDefinition. |
OnChanged()
Called when [changed].
Declaration
protected virtual void OnChanged()
Remove(String)
Removes the specified format definition name.
Declaration
public bool Remove(string formatDefinitionName)
Parameters
System.String
formatDefinitionName
Name of the format definition. |
Returns
System.Boolean
|
Remove(ITextFormatDefinitionKey)
Removes the specified format definition key.
Declaration
public bool Remove(ITextFormatDefinitionKey formatDefinitionKey)
Parameters
ITextFormatDefinitionKey
formatDefinitionKey
The format definition key. |
Returns
System.Boolean
|
Events
Changed
Occurs when [changed].
Declaration
public event EventHandler Changed
Event Type
System.EventHandler
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
An System.Collections.IEnumerator object that can be used to iterate through the collection. |