A CSS property. You can create custom ones by deriving from this class. Note that they are instanced globally.
|
virtual string[] | GetProperties () |
| The set of all properties that this one will handle. Usually just one. e.g. "v-align", "vertical-align". More...
|
|
virtual float | GetNormalValue (RenderableData context) |
| The value of the 'normal' keyword. More...
|
|
CssProperty | GetAliased (int index) |
| Gets the aliased property for the given index. E.g. color-r is index 0 of color. More...
|
|
CssProperty | GetAliased (int index, bool orThis) |
| Gets the aliased property for the given index. E.g. color-r is index 0 of color. More...
|
|
virtual void | Aliases () |
| The set of aliases for this property. For example, the border-radius property can declare an alias of border-top-left which maps to e.g. "1", i.e. the first inner index. More...
|
|
virtual ApplyState | Apply (ComputedStyle style, Value value) |
| Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that. More...
|
|
virtual void | ApplyText (TextRenderingProperty text, RenderableData data, ComputedStyle style, Value value) |
| Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that. More...
|
|
virtual void | OnReadValue (Style styleBlock, Css.Value value) |
| Called when a value is read from the CSS stream. More...
|
|
virtual Css.Value | GetValue (Style styleBlock) |
| Called to get a this properties value from the given style. This exists as it may be an alias property. More...
|
|
Css.Value | GetOrCreateValue (Node context, Style styleBlock, bool allowInherit) |
| Called to get a this properties value from the given style. This overload should not be used with alias properties - it always returns the 'host' value. More...
|
|
virtual Css.Value | GetOrCreateValue (Node context, Style styleBlock, bool allowInherit, out Css.Value hostValue) |
| Called to get a this properties value from the given style. This exists as it may be an alias property. More...
|
|
void | Reapply (ComputedStyle computed, string propertyName) |
| Causes the named property to apply its value. More...
|
|
void | Reapply (ComputedStyle style, CssProperty property) |
| Sets the named css property from the given style if the property exists in the style. More...
|
|
BackgroundImage | GetBackground (ComputedStyle style) |
| Call this if the current property requires a background image object. More...
|
|
BorderProperty | GetBorder (ComputedStyle style) |
| Call this if the current property requies a border object. More...
|
|
TextRenderingProperty | GetText (ComputedStyle style) |
| Call this if the current property requires a text object. NOTE: This one may be null. More...
|
|
TextRenderingProperty3D | GetText3D (ComputedStyle style) |
| Call this if the current property requires a text object. NOTE: This one may be null. More...
|
|
|
virtual Css.Spec.Value | GetSpecification () |
| Loads the values spec. More...
|
|
void | ColourAliases (string property, ValueAxis axis, int index) |
| Loads a set of colour aliases for a given property name. E.g. name-r,name-g,name-b and name-a. The alias may also be mapped to a sub-index. It must be an empty string otherwise. More...
|
|
void | SquareAliases (string property, int index) |
| Loads a set of square aliases. E.g. name-top or name-bottom. More...
|
|
void | ColourAliases () |
| Loads a set of colour aliases. E.g. name-r,name-g,name-b and name-a. More...
|
|
void | PointAliases2D () |
| Loads a set of point aliases. E.g. name-x, name-y and name-z. More...
|
|
void | PointAliases3D () |
| Loads a set of point aliases. E.g. name-x, name-y and name-z. More...
|
|
void | SquareAliases () |
| Loads a set of square aliases. E.g. name-top or name-bottom. More...
|
|
void | LogicalAlias (string name, ValueAxis axis, params int[] target) |
| Adds a logical alias for the given CSS property to the given target. A numeric target, e.g. 1, means that inner index of this property, which is a set. More...
|
|
void | Alias (string name, ValueAxis axis, params int[] target) |
| Adds an alias for the given CSS property to the given target. A numeric target, e.g. 1, means that inner index of this property, which is a set. More...
|
|
Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that.
- Parameters
-
style | The computed style to apply the property to. |
value | The new value being applied. |
Reimplemented in Css.Properties.FontVariantNumeric, Css.Properties.FontVariantEastAsian, Css.Properties.TransformProperty, Css.Properties.FontVariantLigatures, Css.Properties.FontVariantAlternates, Css.Properties.Filter, Css.Properties.FontVariantCaps, Css.Properties.UserSelect, Css.Properties.FontFeatureSettings, Css.Properties.FontVariantPosition, Css.Properties.SparkWritingSystem, Css.Properties.TextExtrude, Css.Properties.BackgroundPosition, Css.Properties.TransformOriginPosition, Css.Properties.PositionInternal, Css.Properties.FontWeight, Css.Properties.Overflow, Css.Properties.FontStretch, Css.Properties.FontSize, Css.Properties.BorderColor, Css.Properties.TextDecorationColor, Css.Properties.FontFamily, Css.Properties.ColorOverlay, Css.Properties.Scroll, Css.Properties.BorderWidth, Css.Properties.TextDecorationLine, Css.Properties.TextDecorationStyle, Css.Properties.BorderStyle, Css.Properties.FontStyle, Css.Properties.ShaderFamily, Css.Properties.Margin, Css.Properties.Padding, Css.Properties.LineHeight, Css.Properties.BackgroundSize, Css.Properties.Height, Css.Properties.Quotes, Css.Properties.ParticlesRotateProperty, Css.Properties.Width, Css.Properties.BorderImageSlice, Css.Properties.ClipMode, Css.Properties.ParticlesScaleProperty, Css.Properties.BorderImageRepeat, Css.Properties.ScriptLevel, Css.Properties.ScriptMinSize, Css.Properties.ScriptSizeMultiplier, Css.Properties.BorderImageWidth, Css.Properties.WordSpacing, Css.Properties.MathDisplay, Css.Properties.MathVariant, Css.Properties.ColorProperty, Css.Properties.BorderImageSource, Css.Properties.BorderRadius, Css.Properties.Content, Css.Properties.WhiteSpace, Css.Properties.BorderImageOutset, Css.Properties.FontSizeAdjust, Css.Properties.FontSynthesis, Css.Properties.LetterSpacing, Css.Properties.MinWidth, Css.Properties.TransformOrigin, Css.Properties.UnicodeBidi, Css.Properties.MinHeight, Css.Properties.TextShadow, Css.Properties.TextStroke, Css.Properties.BoxSizing, Css.Properties.MaxHeight, Css.Properties.MaxWidth, Css.Properties.OverflowWrap, Css.Properties.Azimuth, Css.Properties.Elevation, Css.Properties.Pitch, Css.Properties.PitchRange, Css.Properties.Richness, Css.Properties.Speak, Css.Properties.SpeakHeader, Css.Properties.SpeakNumeral, Css.Properties.SpeechRate, Css.Properties.Stress, Css.Properties.BackgroundColor, Css.Properties.CaptionSide, Css.Properties.Cursor, Css.Properties.Direction, Css.Properties.EmptyCells, Css.Properties.Orphans, Css.Properties.Widows, Css.Properties.Zoom, Css.Properties.FloodColor, Css.Properties.StrokeLineCap, Css.Properties.StrokeWidth, Css.Properties.SlidesTimingFunction, Css.Properties.PlayDuring, Css.Properties.SpeakPunctuation, Css.Properties.AlignmentBaseline, Css.Properties.BaselineShift, Css.Properties.Display, Css.Properties.FilteringMode, Css.Properties.AlignContents, Css.Properties.AlignItems, Css.Properties.AlignSelf, Css.Properties.Ascent, Css.Properties.CapHeight, Css.Properties.Descent, Css.Properties.Slope, Css.Properties.Stemh, Css.Properties.Stemv, Css.Properties.Widths, Css.Properties.XHeight, Css.Properties.ListStylePosition, Css.Properties.ListStyleType, Css.Properties.Position, Css.Properties.TableLayout, Css.Properties.TextAlign, Css.Properties.TextAlignLast, Css.Properties.TextTransform, Css.Properties.VerticalAlign, Css.Properties.Visibility, Css.Properties.ZIndex, Css.Properties.AnimationTimingFunction, Css.Properties.All, Css.Properties.BackgroundImageProperty, Css.Properties.Clip, Css.Properties.CounterIncrement, Css.Properties.CounterReset, Css.Properties.Clear, Css.Properties.Float, Css.Properties.FontSmoothing, Css.Properties.ListStyleImage, Css.Properties.Fill, Css.Properties.Stroke, Css.Properties.BorderColllapseProperty, Css.Properties.BorderSpacingProperty, Css.Properties.TextOrientation, Css.Properties.WritingMode, Css.Properties.BackgroundAttachment, Css.Properties.BackgroundRepeat, Css.Properties.Baseline, Css.Properties.BBox, Css.Properties.Centerline, Css.Properties.Mathline, Css.Properties.Panose1, Css.Properties.Topline, Css.Properties.UnicodeRange, Css.Properties.UnitsPerEm, Css.Properties.ClipPath, Css.Properties.ClipRule, Css.Properties.TextAnchor, Css.Properties.SlidesName, Css.Properties.SlidesDelay, Css.Properties.SlidesDirection, Css.Properties.SlidesDuration, Css.Properties.SlidesIterationCount, Css.Properties.AnimationDelay, Css.Properties.AnimationDirection, Css.Properties.AnimationDuration, Css.Properties.AnimationFillMode, Css.Properties.AnimationIterationCount, Css.Properties.AnimationName, Css.Properties.AnimationPlayState, Css.Properties.BackgroundClip, and Css.Properties.OnAtlas.
virtual string [] Css.CssProperty.GetProperties |
( |
) | |
|
|
inlinevirtual |
The set of all properties that this one will handle. Usually just one. e.g. "v-align", "vertical-align".
Reimplemented in Css.Properties.Filter, Css.Properties.FontVariantNumeric, Css.Properties.FontVariantEastAsian, Css.Properties.UserSelect, Css.Properties.FontFeatureSettings, Css.Properties.FontVariantCaps, Css.Properties.FontVariantAlternates, Css.Properties.SparkWritingSystem, Css.Properties.FontVariantLigatures, Css.Properties.FontVariantPosition, Css.Properties.TextExtrude, Css.Properties.TransformOriginPosition, Css.Properties.FontVariantCompProperty, Css.Properties.Overflow, Css.Properties.ShaderFamily, Css.Properties.SparkSpecifity, Css.Properties.Height, Css.Properties.Quotes, Css.Properties.Width, Css.Properties.ColorOverlay, Css.Properties.FontStretch, Css.Properties.WordSpacing, Css.Properties.FontFamily, Css.Properties.FontSize, Css.Properties.FontWeight, Css.Properties.BackgroundSize, Css.Properties.Content, Css.Properties.WhiteSpace, Css.Properties.BorderStyle, Css.Properties.BorderWidth, Css.Properties.FontSizeAdjust, Css.Properties.FontSynthesis, Css.Properties.LetterSpacing, Css.Properties.Margin, Css.Properties.MinWidth, Css.Properties.Padding, Css.Properties.PositionInternal, Css.Properties.Resize, Css.Properties.Scroll, Css.Properties.UnicodeBidi, Css.Properties.BorderColor, Css.Properties.ClipMode, Css.Properties.FontStyle, Css.Properties.MinHeight, Css.Properties.ParticlesScaleProperty, Css.Properties.TextShadow, Css.Properties.TextStroke, Css.Properties.ScriptLevel, Css.Properties.ScriptMinSize, Css.Properties.ScriptSizeMultiplier, Css.Properties.BoxSizing, Css.Properties.ColorProperty, Css.Properties.LineHeight, Css.Properties.MaxHeight, Css.Properties.MaxWidth, Css.Properties.OverflowWrap, Css.Properties.ScrollBehavior, Css.Properties.MathDisplay, Css.Properties.MathVariant, Css.Properties.Azimuth, Css.Properties.Elevation, Css.Properties.Pitch, Css.Properties.PitchRange, Css.Properties.Richness, Css.Properties.Speak, Css.Properties.SpeakHeader, Css.Properties.SpeakNumeral, Css.Properties.SpeechRate, Css.Properties.Stress, Css.Properties.CaptionSide, Css.Properties.Cursor, Css.Properties.Direction, Css.Properties.EmptyCells, Css.Properties.FontCompProperty, Css.Properties.Orphans, Css.Properties.ParticlesRotateProperty, Css.Properties.TransformProperty, Css.Properties.Widows, Css.Properties.Zoom, Css.Properties.FillOpacity, Css.Properties.FloodColor, Css.Properties.FloodOpacity, Css.Properties.StrokeDashArray, Css.Properties.StrokeDashOffset, Css.Properties.StrokeLineCap, Css.Properties.StrokeLineJoin, Css.Properties.StrokeMiterLimit, Css.Properties.StrokeOpacity, Css.Properties.StrokeWidth, Css.Properties.SlidesTimingFunction, Css.Properties.PlayDuring, Css.Properties.SpeakPunctuation, Css.Properties.AlignmentBaseline, Css.Properties.BaselineShift, Css.Properties.BorderImageCompProperty, Css.Properties.AlignContents, Css.Properties.AlignItems, Css.Properties.AlignSelf, Css.Properties.Ascent, Css.Properties.CapHeight, Css.Properties.Descent, Css.Properties.Slope, Css.Properties.Stemh, Css.Properties.Stemv, Css.Properties.Widths, Css.Properties.XHeight, Css.Properties.ListStyle, Css.Properties.ListStylePosition, Css.Properties.ListStyleType, Css.Properties.Position, Css.Properties.TableLayout, Css.Properties.TextAlign, Css.Properties.TextAlignLast, Css.Properties.TextDecorationLine, Css.Properties.TextTransform, Css.Properties.TransformOrigin, Css.Properties.VerticalAlign, Css.Properties.Visibility, Css.Properties.ZIndex, Css.Properties.Cue, Css.Properties.CueAfter, Css.Properties.CueBefore, Css.Properties.Pause, Css.Properties.PauseAfter, Css.Properties.PauseBefore, Css.Properties.AnimationTimingFunction, Css.Properties.All, Css.Properties.BackgroundImageProperty, Css.Properties.Clip, Css.Properties.CounterIncrement, Css.Properties.CounterReset, Css.Properties.Clear, Css.Properties.Float, Css.Properties.FontSmoothing, Css.Properties.ListStyleImage, Css.Properties.Fill, Css.Properties.Stroke, Css.Properties.BorderColllapseProperty, Css.Properties.BorderSpacingProperty, Css.Properties.TextOrientation, Css.Properties.WritingMode, Css.Properties.BackgroundAttachment, Css.Properties.BackgroundColor, Css.Properties.BackgroundPosition, Css.Properties.BackgroundRepeat, Css.Properties.Display, Css.Properties.Baseline, Css.Properties.BBox, Css.Properties.Centerline, Css.Properties.Mathline, Css.Properties.Panose1, Css.Properties.Topline, Css.Properties.UnicodeRange, Css.Properties.UnitsPerEm, Css.Properties.ClipPath, Css.Properties.ClipRule, Css.Properties.TextAnchor, Css.Properties.SlidesName, Css.Properties.TextDecorationColor, Css.Properties.SlidesDelay, Css.Properties.SlidesDirection, Css.Properties.SlidesDuration, Css.Properties.SlidesIterationCount, Css.Properties.SlidesCompProperty, Css.Properties.AnimationDelay, Css.Properties.AnimationDirection, Css.Properties.AnimationDuration, Css.Properties.AnimationFillMode, Css.Properties.AnimationIterationCount, Css.Properties.AnimationName, Css.Properties.AnimationPlayState, Css.Properties.FilteringMode, Css.Properties.TextDecorationStyle, Css.Properties.AnimationCompProperty, Css.Properties.BackgroundClip, Css.Properties.BackgroundCompProperty, Css.Properties.BorderImageOutset, Css.Properties.BorderImageRepeat, Css.Properties.BorderImageSlice, Css.Properties.BorderImageSource, Css.Properties.BorderImageWidth, Css.Properties.BorderCompProperty, Css.Properties.BorderBottomProperty, Css.Properties.BorderLeftProperty, Css.Properties.BorderRadius, Css.Properties.BorderRightProperty, Css.Properties.BorderTopProperty, Css.Properties.OnAtlas, Css.Properties.UrlSrc, and Css.Properties.TextDecoCompProperty.