20 writes to Right
PresentationFramework (12)
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (1)
243pageMargin.Right = lineHeight;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
201pageMargin.Right += pageMarginAdjustment - (pageMarginAdjustment / 100.0);
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (1)
76thickness.Right = temp;
src\Framework\MS\Internal\Text\TextDpi.cs (2)
167if (pageMargin.Left >= pageSize.Width) { pageMargin.Right = 0.0; } 170pageMargin.Right = Math.Max(0.0, pageSize.Width - pageMargin.Left - _minSize);
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
1026pageMargin.Right = lineHeight;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1297border.Right = borderRight;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (5)
432templateFixupMargin.Right -= SystemParameters.WindowResizeBorderThickness.Right; 451templateFixupMargin.Right -= SystemParameters.WindowResizeBorderThickness.Left; 460templateFixupMargin.Right -= SystemParameters.WindowResizeBorderThickness.Right; 1415deviceGlassThickness.Right -= windowResizeBorderThicknessDevice.Right; 1416deviceGlassThickness.Right = Math.Max(0, deviceGlassThickness.Right);
PresentationFramework.Aero (2)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
263padding.Right = 15.0; 276padding.Right -= 1.0;
PresentationFramework.Classic (2)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
263padding.Right = 15.0; 276padding.Right -= 1.0;
PresentationFramework.Luna (2)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
263padding.Right = 15.0; 276padding.Right -= 1.0;
PresentationFramework.Royale (2)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
263padding.Right = 15.0; 276padding.Right -= 1.0;
190 references to Right
PresentationFramework (131)
src\Framework\MS\Internal\AnimatedTypeHelpers.cs (11)
40InterpolateDouble(from.Right, to.Right, progress), 58AddDouble(value1.Right, value2.Right), 71value1.Right - value2.Right, 89+ Math.Pow(GetSegmentLengthDouble(from.Right, to.Right), 2.0) 109ScaleDouble(value.Right, factor), 132|| IsValidAnimationValueDouble(value.Right) 155GetZeroValueDouble(baseValue.Right),
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (1)
241if (DoubleUtil.IsNaN(pageMargin.Right))
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (1)
246double pageWidth = pageSize.Width - (pageMargin.Left + pageMargin.Right);
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (1)
625maxTotalWidth = StructuralCache.CurrentFormatContext.PageWidth - pageMargin.Left - pageMargin.Right;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (6)
139!DoubleUtil.AreClose(_pageMargin.Right, pageMargin.Right)) 165pageSize.Width += pageMargin.Left + pageMargin.Right; 197double pageMarginAdjustment = PtsHelper.CalculatePageMarginAdjustment(_structuralCache, pageSize.Width - (pageMargin.Left + pageMargin.Right)); 207pageSize.Width - (pageMargin.Left + pageMargin.Right), 719size.Width += _pageMargin.Left + _pageMargin.Right;
src\Framework\MS\Internal\PtsHost\MbpInfo.cs (16)
75thickness.Left = thickness.Right; 143Double.IsNaN(mbp.Margin.Right) ? defaultMargin.Right : mbp.Margin.Right, 168Double.IsNaN(mbp.Padding.Right) ? defaultPadding.Right : mbp.Padding.Right, 185get { return TextDpi.ToTextDpi(_margin.Right) + TextDpi.ToTextDpi(_border.Right) + TextDpi.ToTextDpi(_padding.Right); } 217get { return TextDpi.ToTextDpi(_border.Right) + TextDpi.ToTextDpi(_padding.Right); } 249get { return TextDpi.ToTextDpi(_border.Right); } 281get { return TextDpi.ToTextDpi(_margin.Right); } 341Double.IsNaN(_padding.Right) || 356Double.IsNaN(_margin.Right) ||
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (3)
114if (DoubleUtil.GreaterThan(_borderThickness.Right, 0)) 118pen.Thickness = _borderThickness.Right; 157new Point(_renderBounds.Right - _borderThickness.Right, _renderBounds.Bottom - _borderThickness.Bottom)));
src\Framework\MS\Internal\PtsHost\Section.cs (3)
124fsrcMargin.du = durPage - TextDpi.ToTextDpi(pageMargin.Left + pageMargin.Right); 235ccol = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, pageSize.Width - (pageMargin.Left + pageMargin.Right), pageFontSize, pageFontFamily, enableColumns); 381PtsHelper.GetColumnsInfo(columnProperties, lineHeight, pageSize.Width - (pageMargin.Left + pageMargin.Right), pageFontSize, pageFontFamily, ncol, pfscolinfo, enableColumns);
src\Framework\MS\Internal\PtsHost\StructuralCache.cs (1)
775PageSize.Width - PageMargin.Left - PageMargin.Right,
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (4)
104mbp.Border = new Thickness(mbp.Border.Left, 0.0, mbp.Border.Right, mbp.Border.Bottom); 105mbp.Padding = new Thickness(mbp.Padding.Left, 0.0, mbp.Padding.Right, mbp.Padding.Bottom); 110mbp.Border = new Thickness(mbp.Border.Left, mbp.Border.Top, mbp.Border.Right, 0.0); 111mbp.Padding = new Thickness(mbp.Padding.Left, mbp.Padding.Top, mbp.Padding.Right, 0.0);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (3)
2110totalPadding = Table.InternalCellSpacing * Table.ColumnCount + mbpInfo.Margin.Left + mbpInfo.Border.Left + mbpInfo.Padding.Left + mbpInfo.Padding.Right + mbpInfo.Border.Right + mbpInfo.Margin.Right;
src\Framework\MS\Internal\Text\TextDpi.cs (2)
168if (pageMargin.Left + pageMargin.Right >= pageSize.Width) 171if (pageMargin.Left + pageMargin.Right >= pageSize.Width)
src\Framework\System\Windows\Controls\Border.cs (11)
228UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 275UIElement.RoundLayoutValue(borders.Right, dpi.DpiScaleX), UIElement.RoundLayoutValue(borders.Bottom, dpi.DpiScaleY)); 476if (DoubleUtil.GreaterThan(border.Right, 0)) 486pen.Thickness = UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX); 490pen.Thickness = border.Right; 586ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 591ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX), 598ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom); 632return new Size(th.Left + th.Right, th.Top + th.Bottom); 648Math.Max(0.0, rt.Width - thick.Left - thick.Right), 948double right = 0.5 * borders.Right;
src\Framework\System\Windows\Controls\Control.cs (1)
387&& t.Right >= 0.0d
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
172delta += margin.Right;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
595Math.Max(ia.MediaSizeWidth - (ia.OriginWidth + ia.ExtentWidth), pagePadding.Right),
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (2)
214desiredSizeWithoutMargin.Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right); 267double rightOffset = margin.Right;
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
713Math.Max(ia.MediaSizeWidth - (ia.OriginWidth + ia.ExtentWidth), pagePadding.Right),
src\Framework\System\Windows\Controls\TextBlock.cs (5)
1353Size contentSize = new Size(Math.Max(0.0, constraint.Width - (padding.Left + padding.Right)), 1425desiredSize.Width += (padding.Left + padding.Right); 2067Size contentSize = new Size(Math.Max(0.0, _referenceSize.Width - (padding.Left + padding.Right)), 3206Size contentSize = new Size(Math.Max(0.0, computedSize.Width - (padding.Left + padding.Right)), 3284double paddingWidth = Padding.Left + Padding.Right;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (2)
262return padding.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(padding.Right) : 0; 362return margin.IsValid(true, false, false, false) ? NativeObjectLengthToPoints(margin.Right) : 0;
src\Framework\System\Windows\Controls\ToolBar.cs (1)
568extraLength = Math.Max(0.0, desiredSize.Width - toolBarPanel.DesiredSize.Width + margin.Left + margin.Right);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (10)
5237cacheBeforeSize = Math.Max(0, cacheBeforeSize - inset.Right); 6364DoubleUtil.AreClose(oldInset.Right, inset.Right) && 6374AreInsetsClose(oldInset.Right, inset.Right))) 6477return DoubleUtil.GreaterThanOrClose(inset.Left - margin.Left, inset.Right - margin.Right); 6992Size backPixelSize = isHorizontal ? new Size(Math.Max(inset.Right,0), childDesiredSize.Height) 7512childPixelSize = new Size(inset.Left + itemDesiredSizes.PixelSize.Width + inset.Right, 12806writer.Write(thickness.Right);
src\Framework\System\Windows\Documents\Block.cs (4)
560if (Double.IsNaN(t.Left) || Double.IsNaN(t.Right) || Double.IsNaN(t.Top) || Double.IsNaN(t.Bottom)) 569if (!Double.IsNaN(t.Right) && (t.Right < 0 || t.Right > maxThickness))
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
1024if (DoubleUtil.IsNaN(pageMargin.Right))
src\Framework\System\Windows\Documents\Paragraph.cs (1)
243return (Double.IsNaN(margin.Left) && Double.IsNaN(margin.Right) && Double.IsNaN(margin.Top) && Double.IsNaN(margin.Bottom));
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
822flowDirection == FlowDirection.RightToLeft && margin.Right > 0 ||
src\Framework\System\Windows\Documents\TextRange.cs (1)
1665((Thickness)value).Right, ((Thickness)value).Top, ((Thickness)value).Left, ((Thickness)value).Bottom);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (9)
1080leftMargin = newThickness.Right < 0 1082: GetNewDoubleValue(null, currentThickness.Left, newThickness.Right, propertyValueAction); 1085? currentThickness.Right 1086: GetNewDoubleValue(null, currentThickness.Right, newThickness.Left, propertyValueAction); 1094rightMargin = newThickness.Right < 0 1095? currentThickness.Right 1096: GetNewDoubleValue(null, currentThickness.Right, newThickness.Right, propertyValueAction); 1238/*left*/((Thickness)value).Right,
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1295if (border.Right != borderRight || border.Bottom != borderBottom)
src\Framework\System\Windows\FrameworkElement.cs (3)
4328double marginWidth = margin.Left + margin.Right; 4575double marginWidth = margin.Left + margin.Right; 4931double marginWidth = margin.Left + margin.Right;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
2478double width = uiElement.RenderSize.Width + deflateThickness.Left + deflateThickness.Right;
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (8)
432templateFixupMargin.Right -= SystemParameters.WindowResizeBorderThickness.Right; 460templateFixupMargin.Right -= SystemParameters.WindowResizeBorderThickness.Right; 504templateFixupTransform = new MatrixTransform(1, 0, 0, 1, -(nonClientThickness.Left + nonClientThickness.Right), 0); 711rcClientArea.Right -= (int)windowResizeBorderThicknessDevice.Right; 1415deviceGlassThickness.Right -= windowResizeBorderThicknessDevice.Right; 1416deviceGlassThickness.Right = Math.Max(0, deviceGlassThickness.Right); 1424cxRightWidth = (int)Math.Ceiling(deviceGlassThickness.Right), 1467else if (mousePosition.X < windowPosition.Right && mousePosition.X >= windowPosition.Right - _chromeInfo.ResizeBorderThickness.Right)
src\Framework\System\Windows\Standard\DpiHelper.cs (1)
78Point bottomRight = LogicalPixelsToDevice(new Point(logicalThickness.Right, logicalThickness.Bottom), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\Standard\Utilities.cs (1)
298if (!IsDoubleFiniteAndNonNegative(thickness.Right))
src\Framework\System\Windows\Thickness.cs (8)
130&& DoubleUtil.IsZero(Right) 140&& DoubleUtil.AreClose(Left, Right) 158if(Left < 0d || Right < 0d || Top < 0d || Bottom < 0d) 164if(DoubleUtil.IsNaN(Left) || DoubleUtil.IsNaN(Right) || DoubleUtil.IsNaN(Top) || DoubleUtil.IsNaN(Bottom)) 170if(Double.IsPositiveInfinity(Left) || Double.IsPositiveInfinity(Right) || Double.IsPositiveInfinity(Top) || Double.IsPositiveInfinity(Bottom)) 178if(Double.IsNegativeInfinity(Left) || Double.IsNegativeInfinity(Right) || Double.IsNegativeInfinity(Top) || Double.IsNegativeInfinity(Bottom)) 198&& DoubleUtil.AreClose(Right, thickness.Right)
src\Framework\System\Windows\ThicknessConverter.cs (2)
161return new InstanceDescriptor(ci, new object[] { th.Left, th.Top, th.Right, th.Bottom }); 193sb.Append(LengthConverter.ToString(th.Right, cultureInfo));
src\Framework\System\Windows\Window.cs (2)
6987if (margin.Left + margin.Right >= logicalClientRc.Width 6997LogicalToDeviceUnits(new Point(logicalClientRc.Width - margin.Right, logicalClientRc.Height - margin.Bottom)));
PresentationFramework.Aero (9)
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
219double borderX = border.Left + border.Right; 280double borderX = border.Left + border.Right; 318double borderX = border.Left + border.Right; 326bool isSimpleBorder = border.Left == 1.0 && border.Right == 1.0 && 501borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Bottom - thickness.Bottom), false)); 502borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Top + thickness.Top), false));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
195childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right);
PresentationFramework.Classic (26)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (23)
577thickness.Right >= 0 && !double.IsPositiveInfinity(thickness.Right) && 600return new Size(th.Left + th.Right, th.Top + th.Bottom); 608Math.Max(0.0, rt.Width - thick.Left - thick.Right), 718double borderWidth = border.Left + border.Right; 749return new Thickness(t.Left * s, t.Top * s, t.Right * s, t.Bottom * s); 848xLines = GetPixelSnappingGuidelines(width, singleThickness.Left, singleThickness.Right, (int)classicThickness); 968if (borderThickness.Right > 0.0) 970dc.DrawRectangle(borderBrush, null, new Rect(bounds.Right - borderThickness.Right, bounds.Top, borderThickness.Right, bounds.Height)); 990DrawBorder(shadow, new Thickness(0, 0, singleThickness.Right, singleThickness.Bottom), dc, ref bounds); 999if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1009if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1018if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1028if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1052if (bounds.Width < singleThickness.Left + singleThickness.Right) 1056dc.DrawRectangle(LightLightBrush, null, new Rect(bounds.Right - singleThickness.Right, bounds.Top, singleThickness.Right, bounds.Height)); 1059bounds.Width -= singleThickness.Left + singleThickness.Right; 1300if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1308if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom)) 1316if (bounds.Width < 2.0 * (singleThickness.Left + singleThickness.Right) || bounds.Height < 2.0 * (singleThickness.Top + singleThickness.Bottom)) 1325if (bounds.Width < (singleThickness.Left + singleThickness.Right) || bounds.Height < (singleThickness.Top + singleThickness.Bottom))
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
195childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right);
PresentationFramework.Luna (8)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
237double totalPadding = padding.Left + padding.Right;
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
195double borderX = isRound ? 2.0 : thickness.Left + thickness.Right; 210bool isUnitThickness = thickness.Left == 1.0 && thickness.Right == 1.0 && 222Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 464Math.Max(0.0, rt.Width - thick.Left - thick.Right),
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
195childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right);
PresentationFramework.Royale (8)
Microsoft\Windows\Themes\ScrollChrome.cs (1)
219double totalPadding = padding.Left + padding.Right;
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (4)
195double borderX = isRound ? 2.0 : thickness.Left + thickness.Right; 210bool isUnitThickness = thickness.Left == 1.0 && thickness.Right == 1.0 && 222Math.Max(0, bounds.Width - thickness.Left - thickness.Right), 464Math.Max(0.0, rt.Width - thick.Left - thick.Right),
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
195childWidth = Math.Max(0.0, childWidth - padding.Left - padding.Right); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right);
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (5)
901double dropButtonLeft = (innerRect.Right > textAreaInset.Right ? innerRect.Right - textAreaInset.Right : 0d) + dropButtonInset.Left; 903double dropButtonRight = innerRect.Right - dropButtonInset.Right; 916double textAreaRight = innerRect.Right > textAreaInset.Right ? innerRect.Right - textAreaInset.Right : textAreaLeft;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (1)
117double parentWidth = parent.DesiredSize.Width - parent.Margin.Left - parent.Margin.Right;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (1)
31width = width - margin.Left - margin.Right;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
132Size childSize = new Size(frameworkChild.DesiredSize.Width - margin.Left - margin.Right, frameworkChild.DesiredSize.Height - margin.Top - margin.Bottom);