47 references to PropertyValueAction
PresentationFramework (47)
src\Framework\System\windows\Documents\TextEditorCharacters.cs (5)
77_OnApplyProperty(This, formattingProperty, propertyValue, /*applyToParagraphs*/false, PropertyValueAction.SetValue); 82_OnApplyProperty(This, formattingProperty, propertyValue, applyToParagraphs, PropertyValueAction.SetValue); 85internal static void _OnApplyProperty(TextEditor This, DependencyProperty formattingProperty, object propertyValue, bool applyToParagraphs, PropertyValueAction propertyValueAction) 335TextEditorCharacters._OnApplyProperty(This, TextElement.FontSizeProperty, OneFontPoint, /*applyToParagraphs:*/false, PropertyValueAction.IncreaseByAbsoluteValue); 376TextEditorCharacters._OnApplyProperty(This, TextElement.FontSizeProperty, OneFontPoint, /*applyToParagraphs:*/false, PropertyValueAction.DecreaseByAbsoluteValue);
src\Framework\System\windows\Documents\TextEditorLists.cs (10)
257TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.IncreaseByAbsoluteValue); 270TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 275TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 280TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.IncreaseByAbsoluteValue); 287TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.IncreaseByAbsoluteValue); 312TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.DecreaseByAbsoluteValue); 326TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 20.0, PropertyValueAction.SetValue); 331TextRangeEdit.SetParagraphProperty(thisSelection.Start, thisSelection.End, Paragraph.TextIndentProperty, 0.0, PropertyValueAction.SetValue); 336TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.DecreaseByAbsoluteValue); 343TextRangeEdit.IncrementParagraphLeadingMargin(thisSelection, /*increment:*/20, PropertyValueAction.DecreaseByAbsoluteValue);
src\Framework\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) 809if (propertyValueAction != PropertyValueAction.SetValue && 810propertyValueAction != PropertyValueAction.IncreaseByAbsoluteValue && 811propertyValueAction != PropertyValueAction.DecreaseByAbsoluteValue && 812propertyValueAction != PropertyValueAction.IncreaseByPercentageValue && 813propertyValueAction != PropertyValueAction.DecreaseByPercentageValue) 818if (propertyValueAction != PropertyValueAction.SetValue && 1622internal virtual void ApplyPropertyToTextVirtual(DependencyProperty formattingProperty, object value, bool applyToParagraphs, PropertyValueAction propertyValueAction)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (21)
230internal static void SetInlineProperty(TextPointer start, TextPointer end, DependencyProperty formattingProperty, object value, PropertyValueAction propertyValueAction) 235propertyValueAction == PropertyValueAction.SetValue && 723SetParagraphProperty(start, end, property, value, PropertyValueAction.SetValue); 744internal static void SetParagraphProperty(TextPointer start, TextPointer end, DependencyProperty property, object value, PropertyValueAction propertyValueAction) 788private static void SetParagraphPropertyWorker(TextPointer start, TextPointer end, DependencyProperty property, object value, PropertyValueAction propertyValueAction) 838private static void SetPropertyOnParagraphOrBlockUIContainer(DependencyObject parent, Block block, DependencyProperty property, object value, PropertyValueAction propertyValueAction) 1061FlowDirection parentFlowDirection, FlowDirection flowDirection, PropertyValueAction propertyValueAction) 1119/// and <see cref="PropertyValueAction"/>. 1128private static double GetNewDoubleValue(DependencyProperty property, double currentValue, double newValue, PropertyValueAction propertyValueAction) 1136private static double NewValue(double currentValue, double newValue, PropertyValueAction propertyValueAction) 1149propertyValueAction == PropertyValueAction.IncreaseByAbsoluteValue ? currentValue + newValue : 1150propertyValueAction == PropertyValueAction.DecreaseByAbsoluteValue ? currentValue - newValue : 1151propertyValueAction == PropertyValueAction.IncreaseByPercentageValue ? currentValue * (1.0 + newValue / 100) : 1152propertyValueAction == PropertyValueAction.DecreaseByPercentageValue ? currentValue * (1.0 - newValue / 100) : 1368internal static void IncrementParagraphLeadingMargin(TextRange range, double increment, PropertyValueAction propertyValueAction) 1371Invariant.Assert(propertyValueAction != PropertyValueAction.SetValue); 1873private static void SetNonStructuralInlineProperty(TextPointer start, TextPointer end, DependencyProperty formattingProperty, object value, PropertyValueAction propertyValueAction) 1886if (propertyValueAction != PropertyValueAction.SetValue) 1920private static double GetNewFontSizeValue(double currentValue, double value, PropertyValueAction propertyValueAction) 1925if (propertyValueAction == PropertyValueAction.IncreaseByAbsoluteValue) 1929else if (propertyValueAction == PropertyValueAction.DecreaseByAbsoluteValue)
src\Framework\System\windows\Documents\TextSelection.cs (1)
1276internal override void ApplyPropertyToTextVirtual(DependencyProperty formattingProperty, object value, bool applyToParagraphs, PropertyValueAction propertyValueAction)