Skip to main content

XamlSourceInfo Class

Represents source location information for an element within a XAML or code file.

Definition

Namespace: Avalonia.Markup.Xaml.Diagnostics
Assembly: Avalonia.Markup.Xaml (in Avalonia.Markup.Xaml.dll)

public class XamlSourceInfo : IEquatable<XamlSourceInfo>
View Source
InheritanceObject → XamlSourceInfo
ImplementsIEquatable(XamlSourceInfo)

Constructors

XamlSourceInfo(Int32, Int32, String)Initializes a new instance of the XamlSourceInfo class with a specified line, column, and file path.

Properties

LineNumberGets the 1-based line number in the source file where the element is defined.
LinePositionGets the 1-based column number in the source file where the element is defined.
SourceUriGets the full path of the source file containing the element, or null if unavailable.

Methods

Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
GetXamlSourceInfo(Object)Retrieves the XAML source information associated with the specified object, if available.
GetXamlSourceInfo(IResourceDictionary, Object)Retrieves the XAML source information associated with the specified key in the given resource dictionary, if available.
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
SetXamlSourceInfo(Object, XamlSourceInfo)Associates XAML source information with the specified object for debugging or diagnostic purposes.
SetXamlSourceInfo(IResourceDictionary, Object, XamlSourceInfo)Associates XAML source information with the specified key in the given resource dictionary.
ToString()Returns a string that represents the current XamlSourceInfo.
(Overrides Object.ToString())

See Also

Reference

Avalonia.Markup.Xaml.Diagnostics Namespace