/// <summary> /// Sets option bit(s) /// </summary> /// <param name="option">The option bit(s) to set</param> /// <param name="setting">True to set, false to clear</param> void SetOption(LineAnnotationOptions option, bool setting) { if (setting) { m_Options |= option; } else { m_Options &= (~option); } }
/// <summary> /// Default constructor defines a style indicating that line annotation should /// not be displayed (if subsequently turned on, the display scale will default /// to 1:2000, and the height of the text will default to 2 meters on the ground). /// </summary> internal LineAnnotationStyle() { m_Scale = 2000.0; m_Height = 2.0; m_Options = 0; }
/// <summary> /// Sets option bit(s) /// </summary> /// <param name="option">The option bit(s) to set</param> /// <param name="setting">True to set, false to clear</param> void SetOption(LineAnnotationOptions option, bool setting) { if (setting) m_Options |= option; else m_Options &= (~option); }