• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Goui
    • Color
    • Colors
    • Document
    • EventTarget
    • IGouiPlugin
    • JsonConvert
    • Message
    • Message.PropertyReference
    • MessageType
    • Node
    • Session
    • Style
    • TargetEventArgs
    • TargetEventHandler
    • TextNode
    • UI
    • UI.FileContent
    • UI.StyleSelectors
    • UIConfig
    • Utilities
    • WebAssemblySession
    • WebSocketSession
    • Window
  • Goui.AspNetCore
    • ElementResult
    • WebSocketHandler
  • Goui.AspNetCore.TagHelpers
    • GouiTagHelper
  • Goui.Forms
    • DisplayAlert
    • ElementChangedEventArgs<TElement>
    • EventTracker
    • EventTracker.NativeGestureRecognizer
    • ExportCellAttribute
    • ExportImageSourceHandlerAttribute
    • ExportRendererAttribute
    • GouiTheme
    • IVisualElementRenderer
    • LinkLabel
    • LinkView
    • LocalIsolatedStorageFile
    • Platform
    • PlatformEffect
    • PlatformRenderer
    • RendererPool
    • ResourcesProvider
    • VisualElementChangedEventArgs
    • VisualElementPackager
    • VisualElementRenderer<TElement>
    • VisualElementRendererFlags
    • VisualElementTracker
  • Goui.Forms.Cells
    • CellElement
    • CellRenderer
    • EntryCellElement
    • EntryCellRenderer
    • ImageCellElement
    • ImageCellRenderer
    • SwitchCellElement
    • SwitchCellRenderer
    • TextCellElement
    • TextCellRenderer
    • ViewCellElement
    • ViewCellRenderer
  • Goui.Forms.Extensions
    • ColorExtensions
    • ElementExtensions
    • FontExtensions
    • ListViewExtensions
  • Goui.Forms.Renderers
    • ActivityIndicatorRenderer
    • BoxRenderer
    • ButtonRenderer
    • DatePickerRenderer
    • DefaultRenderer
    • EditorRenderer
    • EntryRenderer
    • FileImageSourceHandler
    • FrameRenderer
    • IImageSourceHandler
    • ImageLoaderSourceHandler
    • ImageRenderer
    • LabelRenderer
    • LinkLabelRenderer
    • LinkViewRenderer
    • ListViewRenderer
    • NavigationPageRenderer
    • PickerRenderer
    • ProgressBarRenderer
    • ScrollViewRenderer
    • SearchBarRenderer
    • SliderRenderer
    • StreamImagesourceHandler
    • SwitchRenderer
    • SwitchRenderer.SwitchElement
    • TimePickerRenderer
    • ViewRenderer
    • ViewRenderer<TElement, TNativeElement>
    • WebViewRenderer
  • Goui.Html
    • Anchor
    • Body
    • Button
    • ButtonType
    • Canvas
    • CanvasRenderingContext2D
    • CompositeOperation
    • Div
    • Element
    • Form
    • FormControl
    • Heading
    • Iframe
    • Image
    • Input
    • InputType
    • Label
    • LineCap
    • LineJoin
    • List
    • ListItem
    • Option
    • Paragraph
    • Select
    • Span
    • TextArea
    • TextInput
  • Microsoft.AspNetCore.Builder
    • GouiMiddlewareExtensions
  • WebAssembly
    • Runtime
  • Xamarin.Forms
    • Forms
    • Forms.ViewInitializedEventArgs
    • PageExtensions

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 Source

MeasureSize(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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

ToGouiTextAlign(TextAlignment)

Declaration
public static string ToGouiTextAlign(this TextAlignment align)
Parameters
Type Name Description
Xamarin.Forms.TextAlignment align
Returns
Type Description
System.String
| Improve this Doc View Source

ToGouiVerticalAlign(TextAlignment)

Declaration
public static string ToGouiVerticalAlign(this TextAlignment align)
Parameters
Type Name Description
Xamarin.Forms.TextAlignment align
Returns
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX