Nevron Open Vision Documentation
Nevron.Nov.Diagram Namespace / NGeometryCommand Class / Relative Property


In This Topic
    Relative Property (NGeometryCommand)
    In This Topic
    Gets or sets whether the command coordinates are expressed in absolute or relative values. By default set to false, meaning that command coordinates are in absolute shape coordinates.
    Syntax
    'Declaration
     
    
    Public Property Relative As System.Boolean
    'Usage
     
    
    Dim instance As NGeometryCommand
    Dim value As System.Boolean
     
    instance.Relative = value
     
    value = instance.Relative
    public System.bool Relative {get; set;}
    Remarks
    It is often required to make 2D shapes whose geometry coordinates are expressed relatively to the shape Width and Height. In such cases you may set the Relative property to true.

    For example: if Relative is set to false, to define a point in the center of the shape you can set the "Width*0.5" and "Height*0.5" expressions to the X and Y coordindates of a command. This syntax requires one expressions per point coordinate.

    if Relative is set to true, to define a point in the center of the shape you can set the X property to 0.5 and the Y property to 0.5. This syntax does not require expressions.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also