Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > utils > Größe > Max.
Methode utils.Size.max()
Gibt eine neue Größe mit den Werten für die maximale Breite und Höhe beider Größen zurück.
Unterschrift:
static max(a: Size, b: Size): Size;
Parameter
Gibt zurück:
Größe
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-08-22 (UTC)."],[[["The `utils.Size.max()` method returns a new `Size` object."],["The returned `Size` object has the maximum width and height values from the two input `Size` objects (a and b)."],["This method is used to determine the largest dimensions between two `Size` objects."]]],["The `utils.Size.max()` method calculates and returns a new `Size` object. This new object's width and height are determined by comparing the width and height of two input `Size` objects (`a` and `b`). The method selects the maximum width and maximum height from these two inputs to define the dimensions of the new `Size` object. It takes two `Size` parameters, and returns a new `Size` object.\n"]]