コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >IMetricsManager >getFlyoutMetrics
IMetricsManager.getFlyoutMetrics() メソッド
フライアウトの幅と高さをピクセル座標で取得します。デフォルトでは、シンプルなフライアウト(ワークスペースが直接所有する)またはツールボックスが所有するフライアウトの指標を取得します。opt_own
を true
として渡すと、シンプルなフライアウトの指標のみが返され、ワークスペースにシンプルなツールボックスではなくカテゴリ ツールボックスがある場合は、幅と高さとして 0 が返されます。
署名:
getFlyoutMetrics(opt_own?: boolean): ToolboxMetrics;
パラメータ
パラメータ |
型 |
説明 |
opt_own |
ブール値 |
(省略可)ワークスペース独自のフライアウト指標のみを返すかどうかを指定します。 |
戻り値:
ToolboxMetrics
フライアウトの幅と高さ。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 UTC。"],[],["The `getFlyoutMetrics()` method retrieves the width and height of a flyout in pixels. It defaults to returning metrics for either a simple flyout or a toolbox's flyout. An optional boolean parameter, `opt_own`, restricts the method to only return metrics for a simple flyout. If `opt_own` is `true` and a category toolbox is present, it returns a width and height of 0. The method outputs the flyout's width and height as `ToolboxMetrics`.\n"]]