Visible

Namespace: Digi21.DigiNG.Entities
Assembly: Digi21.DigiNG

Bitmask of entity types displayed with this code in the drawing window.

public uint Visible { get; set; }

Property value

Each bit corresponds to an entity type. An entity is displayed in the drawing window if any of its codes has its type's bit enabled and the entity is not hidden (Entity.Hidden). The result is read through Entity.Visible.

Bit Entity type
0x1 Line
0x2 Point
0x4 Text
0x8 Complex
0x10 Polygon
0x20 Point complex

0xFFFFFFFF shows all types and 0 shows none. Constructors assign 0xFFFFFFFF, except Code(string, int?, int?), which assigns 1 (see Constructors).

Code is a structure: assigning Visible on an element of Entity.Codes modifies a copy. Then assign the copy to Entity.Codes[i].

Example

// Hide points with the line's first code and show the other types.
var código = línea.Codes[0];
código.Visible = 0xFFFFFFFF & ~0x2u;
línea.Codes[0] = código;