TextPathSegmentEllipsis Class
Provides text collapsing properties that replace the middle segments of a file path with an ellipsis symbol when the rendered width exceeds a specified limit.
Definition
Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public sealed class TextPathSegmentEllipsis : TextCollapsingProperties
Public NotInheritable Class TextPathSegmentEllipsis
Inherits TextCollapsingProperties
[<SealedAttribute>]
type TextPathSegmentEllipsis =
class
inherit TextCollapsingProperties
end
| Inheritance | Object → TextCollapsingProperties → TextPathSegmentEllipsis |
Remarks
This class is typically used to display file paths in a compact form by collapsing segments near the center and inserting an ellipsis, ensuring that the most significant parts of the path remain visible.
Constructors
| TextPathSegmentEllipsis(String, Double, TextRunProperties, FlowDirection) | Initializes a new instance of the TextPathSegmentEllipsis class that represents an ellipsis segment in a text path with the specified symbol, width, text formatting properties, and flow direction. |
Properties
| FlowDirection | (Overrides TextCollapsingProperties.FlowDirection) |
| Symbol | (Overrides TextCollapsingProperties.Symbol) |
| Width | (Overrides TextCollapsingProperties.Width) |
Methods
| Collapse(TextLine) | (Overrides TextCollapsingProperties.Collapse(TextLine)) |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode() | Serves as the default hash function. (Inherited from Object) |
| GetType() | Gets the Type of the current instance. (Inherited from Object) |
| ToString() | Returns a string that represents the current object. (Inherited from Object) |