public IsFlidInLevelInfo ( int flid, SelLimitType limitType ) : bool | ||
flid | int | The flid. |
limitType | SelLimitType | Type of the limit. |
return | bool |
/// ------------------------------------------------------------------------------------ /// <summary> /// Tests the both the anchor and the end of the specified selection. If its located in /// a book title or a section head, then it sets the properties to a user prompt. /// </summary> /// <param name="helper">The selection</param> /// <param name="paraAnchor">The paragraph at the anchor.</param> /// <param name="paraEnd">The paragraph at the end.</param> /// ------------------------------------------------------------------------------------ private void AdjustSelectionForPrompt(SelectionHelper helper, IStTxtPara paraAnchor, IStTxtPara paraEnd) { SelectionHelper.SelLimitType limit = SelectionHelper.SelLimitType.Anchor; if ((helper.IsFlidInLevelInfo(ScrSectionTags.kflidHeading, limit) || helper.IsFlidInLevelInfo(ScrBookTags.kflidTitle, limit)) && paraAnchor.Contents.Length == 0) { helper.SetTextPropId(SelectionHelper.SelLimitType.Anchor, SimpleRootSite.kTagUserPrompt); } limit = SelectionHelper.SelLimitType.End; if ((helper.IsFlidInLevelInfo(ScrSectionTags.kflidHeading, limit) || helper.IsFlidInLevelInfo(ScrBookTags.kflidTitle, limit)) && paraEnd.Contents.Length == 0) { helper.SetTextPropId(SelectionHelper.SelLimitType.End, SimpleRootSite.kTagUserPrompt); } }