GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoText Class / BackgroundOpaqueWhenSelected Property
In This Topic
    BackgroundOpaqueWhenSelected Property
    In This Topic
    Gets or sets whether the text background is displayed when selected.
    Syntax
    [Category("Behavior")]
    [DefaultValue(false)]
    [Description("Whether the text background is displayed when selected, and transparent when not selected")]
    public virtual bool BackgroundOpaqueWhenSelected {get; set;}

    Property Value

    This defaults to false.
    Remarks
    When this property is true and this text object is selected, we set the TransparentBackground property to false. Assuming there is a suitable BackgroundColor, the text will appear highlit. When the text object is no longer selected, the TransparentBackground property is set to true. Under these circumstances the change to the TransparentBackground property is not recorded by the undo manager (if any). Note that setting this property to true will prevent the normal selection handles from appearing, so that when Resizable is true there won't be any resize handles for the user to manipulate. This feature should only be used when there is only one view on the document, or if it is OK for all views on the document to display the text highlight when the text object is selected in just one of the views.
    See Also