maui-linux/Xamarin.Forms.Core/IFontElement.cs

22 строки
712 B
C#

using System.ComponentModel;
namespace Xamarin.Forms.Internals
{
[EditorBrowsable(EditorBrowsableState.Never)]
public interface IFontElement
{
//note to implementor: implement the properties publicly
FontAttributes FontAttributes { get; }
string FontFamily { get; }
[TypeConverter(typeof(FontSizeConverter))]
double FontSize { get; }
//note to implementor: but implement the methods explicitly
void OnFontFamilyChanged(string oldValue, string newValue);
void OnFontSizeChanged(double oldValue, double newValue);
double FontSizeDefaultValueCreator();
void OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue);
void OnFontChanged(Font oldValue, Font newValue);
}
}