Class Label
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class Label : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, AccessibleText, Buildable, ConstraintTarget, IHandle, GTypeProvider
- Inheritance
-
Label
- Implements
- Inherited Members
Constructors
Label()
public Label()
Label(params ConstructArgument[])
protected Label(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
Label(IntPtr, bool)
protected Label(IntPtr ptr, bool ownedRef)
Parameters
Fields
ActivateCurrentLinkSignal
Signal Descriptor for OnActivateCurrentLink.
public static readonly Signal<Label> ActivateCurrentLinkSignal
Field Value
ActivateLinkSignal
Signal Descriptor for OnActivateLink.
public static readonly ReturningSignal<Label, Label.ActivateLinkSignalArgs, bool> ActivateLinkSignal
Field Value
AttributesPropertyDefinition
public static readonly Property<AttrList, Label> AttributesPropertyDefinition
Field Value
CopyClipboardSignal
Signal Descriptor for OnCopyClipboard.
public static readonly Signal<Label> CopyClipboardSignal
Field Value
EllipsizePropertyDefinition
public static readonly Property<EllipsizeMode, Label> EllipsizePropertyDefinition
Field Value
ExtraMenuPropertyDefinition
public static readonly Property<MenuModel?, Label> ExtraMenuPropertyDefinition
Field Value
JustifyPropertyDefinition
public static readonly Property<Justification, Label> JustifyPropertyDefinition
Field Value
Label_PropertyDefinition
public static readonly Property<string?, Label> Label_PropertyDefinition
Field Value
LinesPropertyDefinition
public static readonly Property<int, Label> LinesPropertyDefinition
Field Value
MaxWidthCharsPropertyDefinition
public static readonly Property<int, Label> MaxWidthCharsPropertyDefinition
Field Value
MnemonicKeyvalPropertyDefinition
public static readonly Property<uint, Label> MnemonicKeyvalPropertyDefinition
Field Value
MnemonicWidgetPropertyDefinition
public static readonly Property<Widget?, Label> MnemonicWidgetPropertyDefinition
Field Value
MoveCursorSignal
Signal Descriptor for OnMoveCursor.
public static readonly Signal<Label, Label.MoveCursorSignalArgs> MoveCursorSignal
Field Value
NaturalWrapModePropertyDefinition
public static readonly Property<NaturalWrapMode, Label> NaturalWrapModePropertyDefinition
Field Value
SelectablePropertyDefinition
public static readonly Property<bool, Label> SelectablePropertyDefinition
Field Value
SingleLineModePropertyDefinition
public static readonly Property<bool, Label> SingleLineModePropertyDefinition
Field Value
TabsPropertyDefinition
public static readonly Property<TabArray, Label> TabsPropertyDefinition
Field Value
UseMarkupPropertyDefinition
public static readonly Property<bool, Label> UseMarkupPropertyDefinition
Field Value
UseUnderlinePropertyDefinition
public static readonly Property<bool, Label> UseUnderlinePropertyDefinition
Field Value
WidthCharsPropertyDefinition
public static readonly Property<int, Label> WidthCharsPropertyDefinition
Field Value
WrapModePropertyDefinition
public static readonly Property<WrapMode, Label> WrapModePropertyDefinition
Field Value
WrapPropertyDefinition
public static readonly Property<bool, Label> WrapPropertyDefinition
Field Value
XalignPropertyDefinition
public static readonly Property<float, Label> XalignPropertyDefinition
Field Value
YalignPropertyDefinition
public static readonly Property<float, Label> YalignPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
Attributes
public AttrList Attributes { get; set; }
Property Value
Ellipsize
public EllipsizeMode Ellipsize { get; set; }
Property Value
ExtraMenu
public MenuModel? ExtraMenu { get; set; }
Property Value
Justify
public Justification Justify { get; set; }
Property Value
Label_
public string? Label_ { get; set; }
Property Value
Lines
public int Lines { get; set; }
Property Value
MaxWidthChars
public int MaxWidthChars { get; set; }
Property Value
MnemonicKeyval
public uint MnemonicKeyval { get; }
Property Value
MnemonicWidget
public Widget? MnemonicWidget { get; set; }
Property Value
NaturalWrapMode
public NaturalWrapMode NaturalWrapMode { get; set; }
Property Value
Selectable
public bool Selectable { get; set; }
Property Value
SingleLineMode
public bool SingleLineMode { get; set; }
Property Value
Tabs
public TabArray Tabs { get; set; }
Property Value
UseMarkup
public bool UseMarkup { get; set; }
Property Value
UseUnderline
public bool UseUnderline { get; set; }
Property Value
WidthChars
public int WidthChars { get; set; }
Property Value
Wrap
public bool Wrap { get; set; }
Property Value
WrapMode
public WrapMode WrapMode { get; set; }
Property Value
Xalign
public float Xalign { get; set; }
Property Value
Yalign
public float Yalign { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
AccessibleAnnouncementPriority
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
GetAttributes()
public AttrList? GetAttributes()
Returns
GetBounds(out int, out int, out int, out int)
[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)
Parameters
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetCurrentUri()
public string? GetCurrentUri()
Returns
GetEllipsize()
public EllipsizeMode GetEllipsize()
Returns
GetExtraMenu()
public MenuModel? GetExtraMenu()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetJustify()
public Justification GetJustify()
Returns
GetLabel()
public string GetLabel()
Returns
GetLayout()
public Layout GetLayout()
Returns
GetLayoutOffsets(out int, out int)
public void GetLayoutOffsets(out int x, out int y)
Parameters
GetLines()
public int GetLines()
Returns
GetMaxWidthChars()
public int GetMaxWidthChars()
Returns
GetMnemonicKeyval()
public uint GetMnemonicKeyval()
Returns
GetMnemonicWidget()
public Widget? GetMnemonicWidget()
Returns
GetNaturalWrapMode()
[Version("4.6")]
public NaturalWrapMode GetNaturalWrapMode()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetSelectable()
public bool GetSelectable()
Returns
GetSelectionBounds(out int, out int)
public bool GetSelectionBounds(out int start, out int end)
Parameters
Returns
GetSingleLineMode()
public bool GetSingleLineMode()
Returns
GetTabs()
[Version("4.8")]
public TabArray? GetTabs()
Returns
GetText()
public string GetText()
Returns
GetUseMarkup()
public bool GetUseMarkup()
Returns
GetUseUnderline()
public bool GetUseUnderline()
Returns
GetWidthChars()
public int GetWidthChars()
Returns
GetWrap()
public bool GetWrap()
Returns
GetWrapMode()
public WrapMode GetWrapMode()
Returns
GetXalign()
public float GetXalign()
Returns
GetYalign()
public float GetYalign()
Returns
New(string?)
public static Label New(string? str)
Parameters
str
string
Returns
NewWithMnemonic(string?)
public static Label NewWithMnemonic(string? str)
Parameters
str
string
Returns
ResetProperty(AccessibleProperty)
public void ResetProperty(AccessibleProperty property)
Parameters
property
AccessibleProperty
ResetRelation(AccessibleRelation)
public void ResetRelation(AccessibleRelation relation)
Parameters
relation
AccessibleRelation
ResetState(AccessibleState)
public void ResetState(AccessibleState state)
Parameters
state
AccessibleState
SelectRegion(int, int)
public void SelectRegion(int startOffset, int endOffset)
Parameters
SetAccessibleParent(Accessible?, Accessible?)
[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)
Parameters
parent
AccessiblenextSibling
Accessible
SetAttributes(AttrList?)
public void SetAttributes(AttrList? attrs)
Parameters
attrs
AttrList
SetEllipsize(EllipsizeMode)
public void SetEllipsize(EllipsizeMode mode)
Parameters
mode
EllipsizeMode
SetExtraMenu(MenuModel?)
public void SetExtraMenu(MenuModel? model)
Parameters
model
MenuModel
SetJustify(Justification)
public void SetJustify(Justification jtype)
Parameters
jtype
Justification
SetLabel(string)
public void SetLabel(string str)
Parameters
str
string
SetLines(int)
public void SetLines(int lines)
Parameters
lines
int
SetMarkup(string)
public void SetMarkup(string str)
Parameters
str
string
SetMarkupWithMnemonic(string)
public void SetMarkupWithMnemonic(string str)
Parameters
str
string
SetMaxWidthChars(int)
public void SetMaxWidthChars(int nChars)
Parameters
nChars
int
SetMnemonicWidget(Widget?)
public void SetMnemonicWidget(Widget? widget)
Parameters
widget
Widget
SetNaturalWrapMode(NaturalWrapMode)
[Version("4.6")]
public void SetNaturalWrapMode(NaturalWrapMode wrapMode)
Parameters
wrapMode
NaturalWrapMode
SetSelectable(bool)
public void SetSelectable(bool setting)
Parameters
setting
bool
SetSingleLineMode(bool)
public void SetSingleLineMode(bool singleLineMode)
Parameters
singleLineMode
bool
SetTabs(TabArray?)
[Version("4.8")]
public void SetTabs(TabArray? tabs)
Parameters
tabs
TabArray
SetText(string)
public void SetText(string str)
Parameters
str
string
SetTextWithMnemonic(string)
public void SetTextWithMnemonic(string str)
Parameters
str
string
SetUseMarkup(bool)
public void SetUseMarkup(bool setting)
Parameters
setting
bool
SetUseUnderline(bool)
public void SetUseUnderline(bool setting)
Parameters
setting
bool
SetWidthChars(int)
public void SetWidthChars(int nChars)
Parameters
nChars
int
SetWrap(bool)
public void SetWrap(bool wrap)
Parameters
wrap
bool
SetWrapMode(WrapMode)
public void SetWrapMode(WrapMode wrapMode)
Parameters
wrapMode
WrapMode
SetXalign(float)
public void SetXalign(float xalign)
Parameters
xalign
float
SetYalign(float)
public void SetYalign(float yalign)
Parameters
yalign
float
UpdateCaretPosition()
[Version("4.14")]
public void UpdateCaretPosition()
UpdateContents(AccessibleTextContentChange, uint, uint)
[Version("4.14")]
public void UpdateContents(AccessibleTextContentChange change, uint start, uint end)
Parameters
change
AccessibleTextContentChangestart
uintend
uint
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSibling
Accessible
UpdateSelectionBound()
[Version("4.14")]
public void UpdateSelectionBound()
Events
OnActivateCurrentLink
public event SignalHandler<Label> OnActivateCurrentLink
Event Type
OnActivateLink
public event ReturningSignalHandler<Label, Label.ActivateLinkSignalArgs, bool> OnActivateLink
Event Type
OnCopyClipboard
public event SignalHandler<Label> OnCopyClipboard
Event Type
OnMoveCursor
public event SignalHandler<Label, Label.MoveCursorSignalArgs> OnMoveCursor