gtk-sharpGtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.GLib.Object
A tag that can be applied to text in a
Tags should be in the for a given before using them with that buffer.
is the best way to create tags.
Constructor
Pointer to the C object.
Internal constructorThis is an internal constructor, and should not be used by user code.Constructor
the name of the tag, or if it's an
anonymous tag
Creates a new PropertyGLib.Property("accumulative-margin")System.BooleanTo be added.To be added.To be added.PropertyGLib.Property("background")System.StringBackground colorPropertyGLib.Property("background-full-height")System.BooleanWhether the background color fills the entire line height or only the height of the tagged characters.Whether the background color fills the entire line height or only the height of the tagged characters.PropertyGLib.Property("background_full_height_set")System.BooleanIndicates if the BackgroundFullHeight property holds a value. if the property is set.PropertyGLib.Property("background-gdk")Gdk.Color
Background color as a (possibly unallocated) .
The background colorPropertyGLib.Property("background_set")System.BooleanIndicates if the Background property holds a value. if the property is set.PropertyGLib.Property("background_stipple_set")System.BooleanIndicates if the BackgroundStipple property holds a value. if the property is set.PropertyGLib.Property("direction")Gtk.TextDirectionText direction, e.g. right-to-left or left-to-right.The text directionPropertyGLib.Property("editable")System.BooleanWhether the text can be modified by the userwhether the text can be modified by the userPropertyGLib.Property("editable_set")System.BooleanIndicates if the Editable property holds a value. if the property is set.PropertyGLib.Property("family")System.StringName of the font familyThe name of the font family
Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
PropertyGLib.Property("family_set")System.BooleanIndicates if the Family property holds a value. if the property is set.PropertyGLib.Property("font")System.StringFont descriptionthe font description as a stringFont description as a string, e.g. "Sans Italic 12".PropertyGLib.Property("font-desc")Pango.FontDescriptionThe FontDescription for the tag.a PropertyGLib.Property("foreground")System.StringForeground colorthe foreground colorPropertyGLib.Property("foreground-gdk")Gdk.Color
Foreground color as a (possibly unallocated) .
The foreground colorPropertyGLib.Property("foreground_set")System.BooleanIndicates if the Foreground property holds a value. if the property is set.PropertyGLib.Property("foreground_stipple_set")System.BooleanIndicates if the ForegroundStipple property holds a value. if the property is set.PropertyGLib.GTypeGType Property.a Returns the native value for .PropertyGLib.Property("indent")System.Int32Amount to indent the paragraph, in pixelsThe indent of the paragraphPropertyGLib.Property("indent_set")System.BooleanIndicates if the Indent property holds a value. if the property is set.PropertyGLib.Property("invisible")System.BooleanWhether this text is hidden.Whether or not this text is hiddenPropertyGLib.Property("invisible_set")System.BooleanIndicates if the Invisible property holds a value. if the property is set.PropertyGLib.Property("justification")Gtk.JustificationText justificationthe justification of the current text
Left, right, or center justification.
PropertyGLib.Property("justification_set")System.BooleanIndicates if the Justification property holds a value. if the property is set.PropertyGLib.Property("language")System.StringThe language of the textThe ISO code of the language of this textPropertyGLib.Property("language_set")System.BooleanIndicates if the Language property holds a value. if the property is set.PropertyGLib.Property("left-margin")System.Int32Width of the left margin in pixels.The width of the marginPropertyGLib.Property("left_margin_set")System.BooleanIndicates if the LeftMargin property holds a value. if the property is set.PropertyGLib.Property("name")System.StringThe name of this tag
The name of this name, or if it's an
anonymous tag
MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideTextEvent", Type=typeof(Gtk.TextTag))System.Boolean
a
a
a Default handler for the event.a Override this method in a subclass to provide a default handler for the event.PropertyGLib.Property("paragraph-background")System.StringParagraph background color.Background color as a .PropertyGLib.Property("paragraph-background-gdk")Gdk.ColorParagraph background color as a .a .The color returned may be unallocated.PropertyGLib.Property("pixels-above-lines")System.Int32Pixels of blank space above paragraphs.The blank space above the paragraphs in pixelsPropertyGLib.Property("pixels_above_lines_set")System.BooleanIndicates if the PixelsAboveLines property holds a value. if the property is set.PropertyGLib.Property("pixels-below-lines")System.Int32Pixels of blank space below paragraphs.Pixels of blank space below paragraphs.PropertyGLib.Property("pixels_below_lines_set")System.BooleanIndicates if the PixelsBelowLines property holds a value. if the property is set.PropertyGLib.Property("pixels-inside-wrap")System.Int32Pixels of blank space between wrapped lines in a paragraphAn integerPropertyGLib.Property("pixels_inside_wrap_set")System.BooleanIndicates if the PixelsInsideWrap property holds a value. if the property is set.PropertySystem.Int32The tag's priorityThe priority of the current tag
Sets the priority of a . Valid priorities are
start at 0 and go to one less than
.
Each tag in a table has a unique priority; setting the
priority of one tag shifts the priorities of all the other
tags in the table to maintain a unique priority for each
tag. Higher priority tags win if two tags both set the
same text attribute. When adding a tag to a tag table, it
will be assigned the highest priority in the table by
default; so normally the precedence of a set of tags is
the order in which they were added to the table, or
created with ),
which adds the tag to the buffer's table automatically.
MethodSystem.Boolean
a , the object that received the event.
a , the event to fire
a , the location where the event was received
Fires a signal on this Gtk.TextTag.A , true if the event was handled.TODO: show an example.PropertyGLib.Property("right-margin")System.Int32Width of the right marginWidth of the right marginPropertyGLib.Property("right_margin_set")System.BooleanIndicates if the RightMargin property holds a value. if the property is set.PropertyGLib.Property("rise")System.Int32Offset of text above the baselineOffset of the text above the baselineOffset of text above the baseline (below the baseline if rise is negative) in pixels.PropertyGLib.Property("rise_set")System.BooleanIndicates if the Rise property holds a value. if the property is set.PropertyGLib.Property("scale")System.DoubleFont size as a scale factor relative to the default font sizeThe font size as a scale factor
This properly adapts to theme changes etc. so is
recommended. Pango predefines some scales such as .
PropertyGLib.Property("scale_set")System.BooleanIndicates if the Scale property holds a value. if the property is set.PropertyGLib.Property("size")System.Int32Font sizeThe font size in Pango unitsPropertyGLib.Property("size-points")System.DoubleFont size in points.The font sizePropertyGLib.Property("size_set")System.BooleanIndicates if the Size property holds a value. if the property is set.PropertyGLib.Property("stretch")Pango.StretchFont stretchfont stretchPropertyGLib.Property("stretch_set")System.BooleanIndicates if the Stretch property holds a value. if the property is set.PropertyGLib.Property("strikethrough")System.BooleanWhether to strike through the textWhether to strike through the textPropertyGLib.Property("strikethrough_set")System.BooleanIndicates if the Strikethrough property holds a value. if the property is set.PropertyGLib.Property("style")Pango.StyleFont stylethe font style of this textPropertyGLib.Property("style_set")System.BooleanIndicates if the Style property holds a value. if the property is set.PropertyGLib.Property("tabs")Pango.TabArrayCustom tabs for this text.the custom tabs for this textPropertyGLib.Property("tabs_set")System.BooleanIndicates if the Tabs property holds a value. if the property is set.EventGLib.Signal("event")Gtk.TextEventHandlerRaised whenever this text tag explicitly fires an event; general-purpose event.PropertyGLib.Property("underline")Pango.UnderlineStyle of underline for this text.The underline style for this textPropertyGLib.Property("underline_set")System.BooleanIndicates if the Underline property holds a value. if the property is set.PropertyGLib.Property("variant")Pango.VariantFont variantThe font variant of this textPropertyGLib.Property("variant_set")System.BooleanIndicates if the Variant property holds a value. if the property is set.PropertyPango.WeightFont weight as an integer.a
see predefined values in ; for example, .
Allowed values: >= 0
Default value: 400
PropertyGLib.Property("weight_set")System.BooleanIndicates if the Weight property holds a value. if the property is set.PropertyGLib.Property("wrap-mode")Gtk.WrapModeWhether to wrap lines never, at word boundaries, or at character boundaries.a PropertyGLib.Property("wrap_mode_set")System.BooleanIndicates if the WrapMode property holds a value. if the property is set.