# VisualSize

A positive logical viewport, independent of raster scale.

 Struct  

`ChartForgeX.Rendering`

**Namespace**

`ChartForgeX.Rendering`

**Assembly**

`ChartForgeX`

**Source**

[VisualRenderContext.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L18)

**Base**

`ValueType`

**Modifiers**

sealed

A positive logical viewport, independent of raster scale.

## Inheritance

- ValueType
- VisualSize

## Usage

 Explore 8 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 6

- Method [IMeasuredStaticVisualSource.MeasureRasterSize](/api/chartforgex-rendering-imeasuredstaticvisualsource/#method-measurerastersize)
- Property [PreparedVisual.Size](/api/chartforgex-rendering-preparedvisual/#property-size)
- Property [VisualLayoutOptions.Size](/api/chartforgex-rendering-visuallayoutoptions/#property-size)
- Extension method [VisualArtifact.MeasureRasterSize](/api/chartforgex-visualartifacts-visualartifact/#extension-measurerastersize-chartforgex-visualartifacts-visualartifact-chartforgex-visualartifacts-visualartifactrenderoptions)
- Property [VisualArtifact.NaturalSize](/api/chartforgex-visualartifacts-visualartifact/#property-naturalsize)
- Method [VisualArtifactRendering.MeasureRasterSize](/api/chartforgex-visualartifacts-visualartifactrendering/#method-measurerastersize-chartforgex-visualartifacts-visualartifact-chartforgex-visualartifacts-visualartifactrenderoptions)

### Accepted by parameters 2

- Method [VisualTurbulence.Generate](/api/chartforgex-effects-visualturbulence/#method-generate-chartforgex-rendering-visualsize-int32-threading-cancellationtoken) parameter `size`
- Constructor [VisualLayoutOptions.VisualLayoutOptions](/api/chartforgex-rendering-visuallayoutoptions/#constructor-ctor-chartforgex-rendering-visualsize-double-boolean) parameter `size`

 Filter members   

    Show inherited   

 

## Constructors

 `public VisualSize(double width, double height)` [#](#constructor-ctor-double-double) 

[VisualRenderContext.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L18)

Creates a finite positive viewport.

Parameters

**width double required**

**height double required**

## Inherited Methods

 `public override bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

 `public override int GetHashCode()` [#](#method-gethashcode) 

Inherited from ValueType

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public override string? ToString()` [#](#method-tostring) 

Inherited from ValueType

Returns

 `string?` 

## Properties

 `public double Width { get; }` [#](#property-width) 

[VisualRenderContext.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L21)

Gets the logical width.

 `public double Height { get; }` [#](#property-height) 

[VisualRenderContext.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Rendering/VisualRenderContext.cs#L23)

Gets the logical height.

<!-- PowerForge markdown artifact sha256:A7E161D5DD233FDFCF64C2EC6DC54C408E0A13748ACA5235BC0CE6956BB61701 -->
