Class XamlFormatProvider
Represents a format provider that can import and export XAML documents from a RadDocument.
Inherited Members
Namespace: Telerik.Windows.Documents.FormatProviders.Xaml
Assembly: Telerik.Windows.Documents.FormatProviders.Xaml.dll
Syntax
public class XamlFormatProvider : DocumentFormatProviderBase, IConfigurableXamlFormatProvider, ITextBasedDocumentFormatProvider, IValidateDocumentFormatProvider, IDocumentFormatProvider
Constructors
XamlFormatProvider()
Properties
CanExport
Gets a value indicating whether this instance can export.
Declaration
public override bool CanExport { get; }
Property Value
System.Boolean
|
Overrides
Implements
CanImport
Gets a value indicating whether this instance can import.
Declaration
public override bool CanImport { get; }
Property Value
System.Boolean
|
Overrides
Implements
ExportSettings
Gets or sets the settings used while exporting.
Declaration
public XamlExportSettings ExportSettings { get; set; }
Property Value
XamlExportSettings
The export settings. |
Implements
ImportSettings
Gets or sets the settings used while importing.
Declaration
public XamlImportSettings ImportSettings { get; set; }
Property Value
XamlImportSettings
The import settings. |
Implements
Name
Gets the name of the specific format provider.
Declaration
public override string Name { get; }
Property Value
System.String
The name. |
Overrides
Implements
SupportedExtensions
Gets the extensions supported by this format provider.
Declaration
public override IEnumerable<string> SupportedExtensions { get; }
Property Value
System.Collections.Generic.IEnumerable<System.String>
The supported extensions. |
Overrides
Implements
Version
Gets the version.
Declaration
public static string Version { get; }
Property Value
System.String
The version. |
Methods
Export(RadDocument)
Exports the specified document to a System.String.
Declaration
public string Export(RadDocument document)
Parameters
RadDocument
document
The document. |
Returns
System.String
A System.String containing the document. |
Implements
Export(RadDocument, Stream)
Exports the specified RadDocument instance to XAML.
Declaration
public override void Export(RadDocument document, Stream output)
Parameters
RadDocument
document
The document. |
System.IO.Stream
output
The System.IO.Stream the document should be saved into. |
Overrides
Implements
Import(Stream)
Imports the specified System.IO.Stream into a RadDocument instance.
Declaration
public override RadDocument Import(Stream input)
Parameters
System.IO.Stream
input
The System.IO.Stream containing the XAML document. |
Returns
RadDocument
The generated RadDocument instance. |
Overrides
Implements
Import(String)
Imports the specified XAML System.String.
Declaration
public RadDocument Import(string input)
Parameters
System.String
input
The string containing the XAML document. |
Returns
RadDocument
The generated RadDocument instance. |
Implements
LoadStylesheet(Stream)
Loads a predefined stylesheet.
Declaration
public static Stylesheet LoadStylesheet(Stream input)
Parameters
System.IO.Stream
input
The stream containing the stylesheet. |
Returns
Stylesheet
The loaded object. |
SaveStylesheet(Stylesheet, Stream)
Saves a stylesheet.
Declaration
public static void SaveStylesheet(Stylesheet stylesheet, Stream output)
Parameters
Stylesheet
stylesheet
The stylesheet. |
System.IO.Stream
output
The output stream. |