Class FontExtensions
Inheritance
System.Object
FontExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Goui.Forms.Extensions
Assembly: Goui.Forms.dll
Syntax
public static class FontExtensions
Methods
| Improve this Doc View SourceMeasureSize(String, Style, Double, Double)
Declaration
public static Size MeasureSize(this string text, Style style, double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
Style | style | |
System.Double | widthConstraint | |
System.Double | heightConstraint |
Returns
Type | Description |
---|---|
Xamarin.Forms.Size |
MeasureSize(String, String, Double, FontAttributes, Double, Double)
Declaration
public static Size MeasureSize(this string text, string fontFamily, double fontSize, FontAttributes fontAttrs, double widthConstraint, double heightConstraint)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.String | fontFamily | |
System.Double | fontSize | |
Xamarin.Forms.FontAttributes | fontAttrs | |
System.Double | widthConstraint | |
System.Double | heightConstraint |
Returns
Type | Description |
---|---|
Xamarin.Forms.Size |
SetStyleFont(View, String, Double, FontAttributes, Style)
Declaration
public static void SetStyleFont(this View view, string family, double size, FontAttributes attrs, Style style)
Parameters
Type | Name | Description |
---|---|---|
Xamarin.Forms.View | view | |
System.String | family | |
System.Double | size | |
Xamarin.Forms.FontAttributes | attrs | |
Style | style |
ToGouiTextAlign(TextAlignment)
Declaration
public static string ToGouiTextAlign(this TextAlignment align)
Parameters
Type | Name | Description |
---|---|---|
Xamarin.Forms.TextAlignment | align |
Returns
Type | Description |
---|---|
System.String |
ToGouiVerticalAlign(TextAlignment)
Declaration
public static string ToGouiVerticalAlign(this TextAlignment align)
Parameters
Type | Name | Description |
---|---|---|
Xamarin.Forms.TextAlignment | align |
Returns
Type | Description |
---|---|
System.String |