Struct LengthOrNone
maxwidth / maxheight are specified in an extended form of Length which has the extra (default) value of "NONE" - i.e no maximum. This extends Length to add that option while maintaining typesafety
Namespace: NinjaTools.FlexBuilder.CSS3
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public struct LengthOrNone
Constructors
- (void) LengthOrNone(LengthOrNoneType)
- (void) LengthOrNone(Boolean)
Failings in Microsoft's C# (not fixed until C# v8 or so) require a parameter here that does literally nothing
Parameters
Boolean | fakeArgument |
- (void) LengthOrNone(Single)
- (void) LengthOrNone(Single, LengthOrNoneType)
Fields
- (LengthOrNoneType) mode
Internal, do NOT modify directly - this is only public because C# doesnt have a 'package' keyword
- (Single) value
Internal, do NOT modify directly - this is only public because C# doesnt have a 'package' keyword
Properties
- (Boolean) hasDeclaredValue
This is identical to 'is the CSS value different from 'AUTO'?'
- (Boolean) hasRelativeValue
See hasRelativeValue
- (LengthOrNone) None
Shorthand for creating a new struct with default value explicitly (C# doesn't fully support struct-constructors)