Class TextMark
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class TextMark : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
TextMark
- Implements
- Derived
- Inherited Members
Constructors
TextMark(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public TextMark(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
TextMark(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected TextMark(CreationData data)
Parameters
dataCreationData
TextMark(TextMarkHandle)
protected TextMark(TextMarkHandle handle)
Parameters
handleTextMarkHandle
Fields
LeftGravityPropertyDefinition
public static readonly Property<bool, TextMark> LeftGravityPropertyDefinition
Field Value
NamePropertyDefinition
public static readonly Property<string?, TextMark> NamePropertyDefinition
Field Value
Properties
LeftGravity
public bool LeftGravity { get; }
Property Value
Name
public string? Name { get; }
Property Value
Methods
GetBuffer()
public TextBuffer? GetBuffer()
Returns
GetDeleted()
public bool GetDeleted()
Returns
GetGType()
public static Type GetGType()
Returns
GetLeftGravity()
public bool GetLeftGravity()
Returns
GetName()
public string? GetName()
Returns
GetVisible()
public bool GetVisible()
Returns
New(string?, bool)
public static TextMark New(string? name, bool leftGravity)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed TextMark instance for a given pointer.
public static TextMark NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new TextMark and sets the properties specified by the construct arguments.
public static TextMark NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetVisible(bool)
public void SetVisible(bool setting)
Parameters
settingbool