Class PasteSettings
Represents a configuration of the paste behavior in RadRichTextBox.
Inheritance
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class PasteSettings : Object
Constructors
PasteSettings()
Initializes a new instance of the PasteSettings class.
Declaration
public PasteSettings()
Methods
GetAvailablePasteOptions(PasteSource)
Gets a list of available PasteOptions for a given PasteSource.
Declaration
public IEnumerable<PasteOption> GetAvailablePasteOptions(PasteSource pasteSource)
Parameters
PasteSource
pasteSource
Current paste source |
Returns
System.Collections.Generic.IEnumerable<PasteOption>
Available paste options |
GetDefaultPasteOptionForPasteSource(PasteSource)
Gets the default PasteOption for a given PasteSource.
Declaration
public Nullable<PasteOption> GetDefaultPasteOptionForPasteSource(PasteSource pasteSource)
Parameters
PasteSource
pasteSource
Current paste source |
Returns
System.Nullable<PasteOption>
The default PasteOption |
SetAvailablePasteOptions(PasteSource, IEnumerable<PasteOption>)
Sets a list of available PasteOptions for a given PasteSource.
Declaration
public void SetAvailablePasteOptions(PasteSource pasteSource, IEnumerable<PasteOption> pasteOptions)
Parameters
PasteSource
pasteSource
Current paste source |
System.Collections.Generic.IEnumerable<PasteOption>
pasteOptions
Available paste options |
SetAvailablePasteOptions(PasteSource, PasteOption[])
Sets a list of available PasteOptions for a given PasteSource.
Declaration
public void SetAvailablePasteOptions(PasteSource pasteSource, params PasteOption[] pasteOptions)
Parameters
PasteSource
pasteSource
Current paste source |
PasteOption[]
pasteOptions
Available paste options |
SetDefaultPasteOptionForPasteSource(PasteSource, PasteOption)
Sets the default PasteOptions for a given PasteSource.
Declaration
public void SetDefaultPasteOptionForPasteSource(PasteSource pasteSource, PasteOption pasteOption)
Parameters
PasteSource
pasteSource
Current paste source |
PasteOption
pasteOption
Available paste options |