Blazor | ComponentOne
C1.Blazor.Core Assembly / C1.Blazor.Core Namespace / C1Style Class / MaxHeight Property

In This Topic
    MaxHeight Property (C1Style)
    In This Topic
    The max-height property defines the maximum height of an element.
    Syntax
    'Declaration
     
    
    Public Property MaxHeight As Nullable(Of C1StyleLength)
    public Nullable<C1StyleLength> MaxHeight {get; set;}
    Remarks
    If the content is larger than the maximum height, it will overflow. How the container will handle the overflowing content is defined by the overflow property. If the content is smaller than the maximum height, the max-height property has no effect. . This prevents the value of the Height property from becoming larger than MaxHeight. The value of the MaxHeight property overrides the Height property.
    See Also