# range.alignCenter()

{% tabs %}
{% tab title="💾 程式" %}
```javascript
/**
 * custom prototype for Range
 * @example
 * range.__proto__ = app.range.prototype;
 * range.alignCenter();
 */
app.rangePrototype = {

  // 🔸 range.alignCenter()
  alignCenter(){
    this
      .setVerticalAlignment('middle')
      .setHorizontalAlignment('center');
    return this;   // for chaining
  },

};
```
{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}
