Sets or retrieves the weight, or importance, of a style rule when a conflict occurs.
HRESULT IHTMLRenderStyle::get_renderingPriority(long *p);HRESULT IHTMLRenderStyle::put_renderingPriority(long v);
- Pointer to a variable of type long that receives the rendering priority of the object.
- Long integer that specifies the rendering priority of the object.
Returns S_OK if successful, or an error value otherwise.
Properties with higher priority override properties with lower priority. The default value is 0, and the higher the number, the higher the priority. The rendering priority has a limit of 9. If a rendering style object in a set of rendering style objects has a priority greater than 9, the priorities of all objects in the set are ignored. The rendering style object which was first applied to a segment will determine the rendering style of the segment.
If two properties of the IHTMLRenderStyle interface are applied to the same text selection, the property with higher rendering priority overrides the property with lower rendering priority. If you allow two properties of the IHTMLRenderStyle interface to have the same rendering priority, the browser will not be able to determine which property will override the other.