次の方法で共有


SLIDER.borderSize

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The borderSize attribute specifies or retrieves the border width in pixels.

        elementID.borderSize

Possible Values

This attribute is a read/write Number (long) representing the border width in pixels. The default value is zero.

Remarks

This attribute defines an offset from the beginning and end of the slider control that is, from the left and right if the direction attribute is set to "horizontal", and from the top and bottom if it is set to "vertical". These offset positions dictate the minimum and maximum positions of the slider thumb, beyond which the foreground color or image will not be applied.

If a background image is used with the tiled attribute set to true, the offset is applied to the image, dictating the amount of the image (either from the left and right or from the top and bottom) to be used for the beginning and end borders of the slider control, with the central portion of the image being tiled throughout the remainder. In this way, a small background image can be used to cover the full length of a larger slider control.

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

SLIDER Element

SLIDER.foregroundColor

SLIDER.foregroundImage

SLIDER.thumbImage

SLIDER.tiled