CharactersReservedPerMedia

View as Markdown

Definition

Sets the number of characters allowed when attaching an image to ensure that character count is properly calculated.

Social networks which limit the number of characters for each post, will have a defined number of characters that are reserved when an image or other media is attached.

Property Value

A int value that represents the number of characters reserved when attaching an image or other media.

This property should ONLY be set from the OnStateChange() method during State.SetDefaults or State.Configure.

Syntax

CharactersReservedPerMedia

Examples

1protected override void OnStateChange()
2{
3 if (State == State.SetDefaults)
4 {
5 CharactersReservedPerMedia = 40;
6 }
7}