47 references to PropertyValueAction
PresentationFramework (47)
System\windows\Documents\TextEditorCharacters.cs (5)
58_OnApplyProperty(This, formattingProperty, propertyValue, /*applyToParagraphs*/false, PropertyValueAction.SetValue); 63_OnApplyProperty(This, formattingProperty, propertyValue, applyToParagraphs, PropertyValueAction.SetValue); 66internal static void _OnApplyProperty(TextEditor This, DependencyProperty formattingProperty, object propertyValue, bool applyToParagraphs, PropertyValueAction propertyValueAction) 316TextEditorCharacters._OnApplyProperty(This, TextElement.FontSizeProperty, OneFontPoint, /*applyToParagraphs:*/false, PropertyValueAction.IncreaseByAbsoluteValue); 357TextEditorCharacters._OnApplyProperty(This, TextElement.FontSizeProperty, OneFontPoint, /*applyToParagraphs:*/false, PropertyValueAction.DecreaseByAbsoluteValue);
System\windows\Documents\TextEditorLists.cs (10)
238TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.IncreaseByAbsoluteValue); 251TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 256TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 261TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.IncreaseByAbsoluteValue); 268TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.IncreaseByAbsoluteValue); 293TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.DecreaseByAbsoluteValue); 307TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 312TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 317TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.DecreaseByAbsoluteValue); 324TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.DecreaseByAbsoluteValue);
System\Windows\Documents\TextRange.cs (10)
731this.ApplyPropertyValue(formattingProperty, value, /*applyToParagraphs*/false, PropertyValueAction.SetValue); 753this.ApplyPropertyValue(formattingProperty, value, applyToParagraphs, PropertyValueAction.SetValue); 775internal void ApplyPropertyValue(DependencyProperty formattingProperty, object value, bool applyToParagraphs, PropertyValueAction propertyValueAction) 805if (propertyValueAction != PropertyValueAction.SetValue && 806propertyValueAction != PropertyValueAction.IncreaseByAbsoluteValue && 807propertyValueAction != PropertyValueAction.DecreaseByAbsoluteValue && 808propertyValueAction != PropertyValueAction.IncreaseByPercentageValue && 809propertyValueAction != PropertyValueAction.DecreaseByPercentageValue) 814if (propertyValueAction != PropertyValueAction.SetValue && 1614internal virtual void ApplyPropertyToTextVirtual(DependencyProperty formattingProperty, object value, bool applyToParagraphs, PropertyValueAction propertyValueAction)
System\Windows\Documents\TextRangeEdit.cs (21)
225internal static void SetInlineProperty(TextPointer start, TextPointer end, DependencyProperty formattingProperty, object value, PropertyValueAction propertyValueAction) 230propertyValueAction == PropertyValueAction.SetValue && 718SetParagraphProperty(start, end, property, value, PropertyValueAction.SetValue); 739internal static void SetParagraphProperty(TextPointer start, TextPointer end, DependencyProperty property, object value, PropertyValueAction propertyValueAction) 783private static void SetParagraphPropertyWorker(TextPointer start, TextPointer end, DependencyProperty property, object value, PropertyValueAction propertyValueAction) 833private static void SetPropertyOnParagraphOrBlockUIContainer(DependencyObject parent, Block block, DependencyProperty property, object value, PropertyValueAction propertyValueAction) 1056FlowDirection parentFlowDirection, FlowDirection flowDirection, PropertyValueAction propertyValueAction) 1114/// and <see cref="PropertyValueAction"/>. 1123private static double GetNewDoubleValue(DependencyProperty property, double currentValue, double newValue, PropertyValueAction propertyValueAction) 1131private static double NewValue(double currentValue, double newValue, PropertyValueAction propertyValueAction) 1144propertyValueAction == PropertyValueAction.IncreaseByAbsoluteValue ? currentValue + newValue : 1145propertyValueAction == PropertyValueAction.DecreaseByAbsoluteValue ? currentValue - newValue : 1146propertyValueAction == PropertyValueAction.IncreaseByPercentageValue ? currentValue * (1.0 + newValue / 100) : 1147propertyValueAction == PropertyValueAction.DecreaseByPercentageValue ? currentValue * (1.0 - newValue / 100) : 1363internal static void IncrementParagraphLeadingMargin(TextRange range, double increment, PropertyValueAction propertyValueAction) 1366Invariant.Assert(propertyValueAction != PropertyValueAction.SetValue); 1868private static void SetNonStructuralInlineProperty(TextPointer start, TextPointer end, DependencyProperty formattingProperty, object value, PropertyValueAction propertyValueAction) 1881if (propertyValueAction != PropertyValueAction.SetValue) 1915private static double GetNewFontSizeValue(double currentValue, double value, PropertyValueAction propertyValueAction) 1920if (propertyValueAction == PropertyValueAction.IncreaseByAbsoluteValue) 1924else if (propertyValueAction == PropertyValueAction.DecreaseByAbsoluteValue)
System\windows\Documents\TextSelection.cs (1)
1254internal override void ApplyPropertyToTextVirtual(DependencyProperty formattingProperty, object value, bool applyToParagraphs, PropertyValueAction propertyValueAction)