// Token: 0x0600666B RID: 26219 RVA: 0x001CC33C File Offset: 0x001CA53C internal MarkerProperties(List list, int index) { this._offset = list.MarkerOffset; if (double.IsNaN(this._offset)) { double lineHeightValue = DynamicPropertyReader.GetLineHeightValue(list); this._offset = -0.5 * lineHeightValue; } else { this._offset = -this._offset; } this._style = list.MarkerStyle; this._index = index; }
/// <summary> /// Constructor. /// </summary> /// <remarks> /// The listWidth parameter gives the width of the list element, and is used to clip the MarkerOffset value /// </remarks> internal MarkerProperties(List list, int index) { _offset = list.MarkerOffset; // Negative value for offset because it is required by TextFormatter line box model. // If offset is NaN - default value - set it as 0.5 * line height if (Double.IsNaN(_offset)) { // Obtain list's line height to set defualt marker offsert double lineHeight = DynamicPropertyReader.GetLineHeightValue(list); _offset = -0.5 * lineHeight; } else { _offset = -_offset; } _style = list.MarkerStyle; _index = index; }