Class SnippetChunk
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class SnippetChunk : InitiallyUnowned, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
SnippetChunk
- Implements
- Inherited Members
Constructors
SnippetChunk(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 SnippetChunk(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
SnippetChunk(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SnippetChunk(CreationData data)
Parameters
dataCreationData
SnippetChunk(SnippetChunkHandle)
protected SnippetChunk(SnippetChunkHandle handle)
Parameters
handleSnippetChunkHandle
Fields
ContextPropertyDefinition
public static readonly Property<SnippetContext?, SnippetChunk> ContextPropertyDefinition
Field Value
FocusPositionPropertyDefinition
public static readonly Property<int, SnippetChunk> FocusPositionPropertyDefinition
Field Value
SpecPropertyDefinition
public static readonly Property<string?, SnippetChunk> SpecPropertyDefinition
Field Value
TextPropertyDefinition
public static readonly Property<string?, SnippetChunk> TextPropertyDefinition
Field Value
TextSetPropertyDefinition
public static readonly Property<bool, SnippetChunk> TextSetPropertyDefinition
Field Value
TooltipTextPropertyDefinition
public static readonly Property<string?, SnippetChunk> TooltipTextPropertyDefinition
Field Value
Properties
Context
public SnippetContext? Context { get; set; }
Property Value
FocusPosition
public int FocusPosition { get; set; }
Property Value
Spec
public string? Spec { get; set; }
Property Value
Text
public string? Text { get; set; }
Property Value
TextSet
public bool TextSet { get; set; }
Property Value
TooltipText
public string? TooltipText { get; set; }
Property Value
Methods
Copy()
public SnippetChunk Copy()
Returns
GetContext()
public SnippetContext GetContext()
Returns
GetFocusPosition()
public int GetFocusPosition()
Returns
GetGType()
public static Type GetGType()
Returns
GetSpec()
public string? GetSpec()
Returns
GetText()
public string GetText()
Returns
GetTextSet()
public bool GetTextSet()
Returns
GetTooltipText()
public string GetTooltipText()
Returns
New()
public static SnippetChunk New()
Returns
NewFromPointer(nint, bool)
Creates a new managed SnippetChunk instance for a given pointer.
public static SnippetChunk NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SnippetChunk and sets the properties specified by the construct arguments.
public static SnippetChunk NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetContext(SnippetContext)
public void SetContext(SnippetContext context)
Parameters
contextSnippetContext
SetFocusPosition(int)
public void SetFocusPosition(int focusPosition)
Parameters
focusPositionint
SetSpec(string)
public void SetSpec(string spec)
Parameters
specstring
SetText(string)
public void SetText(string text)
Parameters
textstring
SetTextSet(bool)
public void SetTextSet(bool textSet)
Parameters
textSetbool
SetTooltipText(string)
public void SetTooltipText(string tooltipText)
Parameters
tooltipTextstring