Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / TextDecoration.cs / 1 / TextDecoration.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: TextDecoration class // // History: // 10/14/2004: Garyyang Created the file // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; namespace System.Windows { ////// A text decoration /// [Localizability(LocalizationCategory.None)] public sealed partial class TextDecoration : Animatable { ////// Constructor /// public TextDecoration() { } ////// Constructor /// /// The location of the text decoration /// The pen used to draw this text decoration /// The offset of this text decoration to the location /// The unit of the offset /// The unit of the thickness of the pen public TextDecoration( TextDecorationLocation location, Pen pen, double penOffset, TextDecorationUnit penOffsetUnit, TextDecorationUnit penThicknessUnit ) { Location = location; Pen = pen; PenOffset = penOffset; PenOffsetUnit = penOffsetUnit; PenThicknessUnit = penThicknessUnit; } ////// Compare the values of thhe properties in the two TextDecoration objects /// /// The TextDecoration object to be compared against ///True if their property values are equal. False otherwise ////// The method doesn't check "full" equality as it can not take into account of all the possible /// values associated with the DependencyObject,such as Animation, DataBinding and Attached property. /// It only compares the public properties to serve the specific Framework's needs in inline property /// management and Editing serialization. /// internal bool ValueEquals(TextDecoration textDecoration) { if (textDecoration == null) return false; // o is either null or not a TextDecoration object. if (this == textDecoration) return true; // reference equality. return ( Location == textDecoration.Location && PenOffset == textDecoration.PenOffset && PenOffsetUnit == textDecoration.PenOffsetUnit && PenThicknessUnit == textDecoration.PenThicknessUnit && (Pen == null ? textDecoration.Pen == null : Pen.Equals( textDecoration.Pen)) ); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: TextDecoration class // // History: // 10/14/2004: Garyyang Created the file // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Markup; namespace System.Windows { ////// A text decoration /// [Localizability(LocalizationCategory.None)] public sealed partial class TextDecoration : Animatable { ////// Constructor /// public TextDecoration() { } ////// Constructor /// /// The location of the text decoration /// The pen used to draw this text decoration /// The offset of this text decoration to the location /// The unit of the offset /// The unit of the thickness of the pen public TextDecoration( TextDecorationLocation location, Pen pen, double penOffset, TextDecorationUnit penOffsetUnit, TextDecorationUnit penThicknessUnit ) { Location = location; Pen = pen; PenOffset = penOffset; PenOffsetUnit = penOffsetUnit; PenThicknessUnit = penThicknessUnit; } ////// Compare the values of thhe properties in the two TextDecoration objects /// /// The TextDecoration object to be compared against ///True if their property values are equal. False otherwise ////// The method doesn't check "full" equality as it can not take into account of all the possible /// values associated with the DependencyObject,such as Animation, DataBinding and Attached property. /// It only compares the public properties to serve the specific Framework's needs in inline property /// management and Editing serialization. /// internal bool ValueEquals(TextDecoration textDecoration) { if (textDecoration == null) return false; // o is either null or not a TextDecoration object. if (this == textDecoration) return true; // reference equality. return ( Location == textDecoration.Location && PenOffset == textDecoration.PenOffset && PenOffsetUnit == textDecoration.PenOffsetUnit && PenThicknessUnit == textDecoration.PenThicknessUnit && (Pen == null ? textDecoration.Pen == null : Pen.Equals( textDecoration.Pen)) ); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FirstMatchCodeGroup.cs
- ListItemsPage.cs
- EntityException.cs
- TimeoutConverter.cs
- NumericExpr.cs
- DataGridViewCellStyleChangedEventArgs.cs
- JoinTreeSlot.cs
- ProviderSettingsCollection.cs
- HTMLTextWriter.cs
- CompositeControl.cs
- OleDbConnection.cs
- NestPullup.cs
- ImportContext.cs
- RenderCapability.cs
- AppDomainShutdownMonitor.cs
- ContentTextAutomationPeer.cs
- Crypto.cs
- MetadataCollection.cs
- ImageField.cs
- PenLineCapValidation.cs
- EventNotify.cs
- FlowPosition.cs
- FontStyle.cs
- AtomMaterializerLog.cs
- PathGeometry.cs
- X509Certificate2.cs
- CompositionAdorner.cs
- HttpRequestBase.cs
- XmlSortKey.cs
- GridSplitterAutomationPeer.cs
- StylusEditingBehavior.cs
- WhitespaceSignificantCollectionAttribute.cs
- MatchAttribute.cs
- AsyncStreamReader.cs
- StringUtil.cs
- ZipIOCentralDirectoryBlock.cs
- JsonEnumDataContract.cs
- UnsafeCollabNativeMethods.cs
- PolicyManager.cs
- CacheChildrenQuery.cs
- SafeNativeMethodsMilCoreApi.cs
- ObjectDataSourceSelectingEventArgs.cs
- TemplateEditingFrame.cs
- SerializationFieldInfo.cs
- LayoutUtils.cs
- errorpatternmatcher.cs
- PersonalizableTypeEntry.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- TripleDES.cs
- SimpleModelProvider.cs
- RenamedEventArgs.cs
- SeekStoryboard.cs
- Int64.cs
- KeyGesture.cs
- RuntimeConfigLKG.cs
- Inflater.cs
- TemplateColumn.cs
- SmuggledIUnknown.cs
- TransactionTable.cs
- RawTextInputReport.cs
- ConstructorBuilder.cs
- XmlRawWriterWrapper.cs
- AttachedPropertyMethodSelector.cs
- Codec.cs
- CheckableControlBaseAdapter.cs
- Slider.cs
- NameNode.cs
- Int32CAMarshaler.cs
- DataTableNewRowEvent.cs
- StrokeNodeEnumerator.cs
- AnnotationStore.cs
- ObjectStorage.cs
- InvalidProgramException.cs
- AuthenticationService.cs
- TemplateBuilder.cs
- PathStreamGeometryContext.cs
- Operator.cs
- TrustManagerMoreInformation.cs
- TableLayoutSettingsTypeConverter.cs
- Shared.cs
- objectresult_tresulttype.cs
- WorkflowServiceBehavior.cs
- QueryOperator.cs
- DataGridCaption.cs
- HostProtectionPermission.cs
- HttpResponseHeader.cs
- PointCollectionValueSerializer.cs
- StandardToolWindows.cs
- OptionalColumn.cs
- TextMarkerSource.cs
- ResolvePPIDRequest.cs
- OleDbRowUpdatedEvent.cs
- RayHitTestParameters.cs
- WeakEventTable.cs
- ProviderUtil.cs
- StateWorkerRequest.cs
- TreeChangeInfo.cs
- BindingList.cs
- TargetPerspective.cs
- Path.cs