Files
sbox-public/engine/Sandbox.System/UI/StyleSheetAttribute.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

20 lines
445 B
C#

using System;
namespace Sandbox.UI;
/// <summary>
/// Will automatically apply the named stylesheet to the Panel.
/// </summary>
[AttributeUsage( AttributeTargets.Class, AllowMultiple = false, Inherited = false )]
public sealed class StyleSheetAttribute : System.Attribute
{
/// <summary>
/// File name of the style sheet file.
/// </summary>
public string Name;
public StyleSheetAttribute( string name = null )
{
Name = name;
}
}