S&box Wiki

Sandbox.UI.Length.GetPixels

Sandbox.UI.Length.GetPixels

Syntax

float GetPixels( float dimension, float contentSize )

Description

Get the pixel size but also evaluate content size to support use Start, End, Center

Arguments

float dimension
float contentSize

Returns

float

Special Pages


Wikis

?

Render Time: 11ms

DB GetPage 2
Generate Html 0
SaveChanges (1) 5
Render Body 0
Render Sidebar 1