47 references to PropertyValueAction
PresentationFramework (47)
System\windows\Documents\TextEditorCharacters.cs (5)
59_OnApplyProperty(This, formattingProperty, propertyValue, /*applyToParagraphs*/false, PropertyValueAction.SetValue); 64_OnApplyProperty(This, formattingProperty, propertyValue, applyToParagraphs, PropertyValueAction.SetValue); 67internal static void _OnApplyProperty(TextEditor This, DependencyProperty formattingProperty, object propertyValue, bool applyToParagraphs, PropertyValueAction propertyValueAction) 317TextEditorCharacters._OnApplyProperty(This, TextElement.FontSizeProperty, OneFontPoint, /*applyToParagraphs:*/false, PropertyValueAction.IncreaseByAbsoluteValue); 358TextEditorCharacters._OnApplyProperty(This, TextElement.FontSizeProperty, OneFontPoint, /*applyToParagraphs:*/false, PropertyValueAction.DecreaseByAbsoluteValue);
System\windows\Documents\TextEditorLists.cs (10)
239TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.IncreaseByAbsoluteValue); 252TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 257TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 262TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.IncreaseByAbsoluteValue); 269TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.IncreaseByAbsoluteValue); 294TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.DecreaseByAbsoluteValue); 308TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 313TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 318TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.DecreaseByAbsoluteValue); 325TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.DecreaseByAbsoluteValue);
System\Windows\Documents\TextRange.cs (10)
738this.ApplyPropertyValue(formattingProperty, value, /*applyToParagraphs*/false, PropertyValueAction.SetValue); 760this.ApplyPropertyValue(formattingProperty, value, applyToParagraphs, PropertyValueAction.SetValue); 782internal void ApplyPropertyValue(DependencyProperty formattingProperty, object value, bool applyToParagraphs, PropertyValueAction propertyValueAction) 813if (propertyValueAction != PropertyValueAction.SetValue && 814propertyValueAction != PropertyValueAction.IncreaseByAbsoluteValue && 815propertyValueAction != PropertyValueAction.DecreaseByAbsoluteValue && 816propertyValueAction != PropertyValueAction.IncreaseByPercentageValue && 817propertyValueAction != PropertyValueAction.DecreaseByPercentageValue) 822if (propertyValueAction != PropertyValueAction.SetValue && 1622internal virtual void ApplyPropertyToTextVirtual(DependencyProperty formattingProperty, object value, bool applyToParagraphs, PropertyValueAction propertyValueAction)
System\Windows\Documents\TextRangeEdit.cs (21)
226internal static void SetInlineProperty(TextPointer start, TextPointer end, DependencyProperty formattingProperty, object value, PropertyValueAction propertyValueAction) 231propertyValueAction == PropertyValueAction.SetValue && 719SetParagraphProperty(start, end, property, value, PropertyValueAction.SetValue); 740internal static void SetParagraphProperty(TextPointer start, TextPointer end, DependencyProperty property, object value, PropertyValueAction propertyValueAction) 784private static void SetParagraphPropertyWorker(TextPointer start, TextPointer end, DependencyProperty property, object value, PropertyValueAction propertyValueAction) 834private static void SetPropertyOnParagraphOrBlockUIContainer(DependencyObject parent, Block block, DependencyProperty property, object value, PropertyValueAction propertyValueAction) 1057FlowDirection parentFlowDirection, FlowDirection flowDirection, PropertyValueAction propertyValueAction) 1115/// and <see cref="PropertyValueAction"/>. 1124private static double GetNewDoubleValue(DependencyProperty property, double currentValue, double newValue, PropertyValueAction propertyValueAction) 1132private static double NewValue(double currentValue, double newValue, PropertyValueAction propertyValueAction) 1145propertyValueAction == PropertyValueAction.IncreaseByAbsoluteValue ? currentValue + newValue : 1146propertyValueAction == PropertyValueAction.DecreaseByAbsoluteValue ? currentValue - newValue : 1147propertyValueAction == PropertyValueAction.IncreaseByPercentageValue ? currentValue * (1.0 + newValue / 100) : 1148propertyValueAction == PropertyValueAction.DecreaseByPercentageValue ? currentValue * (1.0 - newValue / 100) : 1364internal static void IncrementParagraphLeadingMargin(TextRange range, double increment, PropertyValueAction propertyValueAction) 1367Invariant.Assert(propertyValueAction != PropertyValueAction.SetValue); 1869private static void SetNonStructuralInlineProperty(TextPointer start, TextPointer end, DependencyProperty formattingProperty, object value, PropertyValueAction propertyValueAction) 1882if (propertyValueAction != PropertyValueAction.SetValue) 1916private static double GetNewFontSizeValue(double currentValue, double value, PropertyValueAction propertyValueAction) 1921if (propertyValueAction == PropertyValueAction.IncreaseByAbsoluteValue) 1925else if (propertyValueAction == PropertyValueAction.DecreaseByAbsoluteValue)
System\windows\Documents\TextSelection.cs (1)
1270internal override void ApplyPropertyToTextVirtual(DependencyProperty formattingProperty, object value, bool applyToParagraphs, PropertyValueAction propertyValueAction)