AbstractCanvas<TState>.GetStringSize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetStringSize(String, IFont, Single) | |
GetStringSize(String, IFont, Single, HorizontalAlignment, VerticalAlignment) |
GetStringSize(String, IFont, Single)
- Source:
- AbstractCanvas.cs
- Source:
- AbstractCanvas.cs
public:
virtual Microsoft::Maui::Graphics::SizeF GetStringSize(System::String ^ value, Microsoft::Maui::Graphics::IFont ^ font, float fontSize);
public Microsoft.Maui.Graphics.SizeF GetStringSize (string value, Microsoft.Maui.Graphics.IFont font, float fontSize);
abstract member GetStringSize : string * Microsoft.Maui.Graphics.IFont * single -> Microsoft.Maui.Graphics.SizeF
override this.GetStringSize : string * Microsoft.Maui.Graphics.IFont * single -> Microsoft.Maui.Graphics.SizeF
Public Function GetStringSize (value As String, font As IFont, fontSize As Single) As SizeF
Parameters
- value
- String
- font
- IFont
- fontSize
- Single
Returns
Implements
Applies to
GetStringSize(String, IFont, Single, HorizontalAlignment, VerticalAlignment)
- Source:
- AbstractCanvas.cs
- Source:
- AbstractCanvas.cs
public:
virtual Microsoft::Maui::Graphics::SizeF GetStringSize(System::String ^ aString, Microsoft::Maui::Graphics::IFont ^ font, float aFontSize, Microsoft::Maui::Graphics::HorizontalAlignment aHorizontalAlignment, Microsoft::Maui::Graphics::VerticalAlignment aVerticalAlignment);
public Microsoft.Maui.Graphics.SizeF GetStringSize (string aString, Microsoft.Maui.Graphics.IFont font, float aFontSize, Microsoft.Maui.Graphics.HorizontalAlignment aHorizontalAlignment, Microsoft.Maui.Graphics.VerticalAlignment aVerticalAlignment);
abstract member GetStringSize : string * Microsoft.Maui.Graphics.IFont * single * Microsoft.Maui.Graphics.HorizontalAlignment * Microsoft.Maui.Graphics.VerticalAlignment -> Microsoft.Maui.Graphics.SizeF
override this.GetStringSize : string * Microsoft.Maui.Graphics.IFont * single * Microsoft.Maui.Graphics.HorizontalAlignment * Microsoft.Maui.Graphics.VerticalAlignment -> Microsoft.Maui.Graphics.SizeF
Public Function GetStringSize (aString As String, font As IFont, aFontSize As Single, aHorizontalAlignment As HorizontalAlignment, aVerticalAlignment As VerticalAlignment) As SizeF
Parameters
- aString
- String
- font
- IFont
- aFontSize
- Single
- aHorizontalAlignment
- HorizontalAlignment
- aVerticalAlignment
- VerticalAlignment
Returns
Implements
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET MAUI