Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DataGridViewColumnCollection.cs
- ScrollContentPresenter.cs
- DataList.cs
- QueryResultOp.cs
- ListItemCollection.cs
- Floater.cs
- CustomLineCap.cs
- EntityTypeBase.cs
- ControlParameter.cs
- ApplicationBuildProvider.cs
- Msmq4PoisonHandler.cs
- TextStore.cs
- OdbcCommand.cs
- RIPEMD160.cs
- WriteableBitmap.cs
- XXXInfos.cs
- DeclaredTypeValidatorAttribute.cs
- IteratorFilter.cs
- SessionPageStateSection.cs
- XPathScanner.cs
- SignatureToken.cs
- QueryReaderSettings.cs
- XAMLParseException.cs
- SurrogateEncoder.cs
- ExtensionQuery.cs
- LogLogRecordEnumerator.cs
- ProcessThreadCollection.cs
- ThreadInterruptedException.cs
- Color.cs
- TypedDataSetSchemaImporterExtension.cs
- PropertyExpression.cs
- TemplateBamlRecordReader.cs
- ServerIdentity.cs
- RegexReplacement.cs
- LoadedEvent.cs
- TreeNodeCollection.cs
- AccessedThroughPropertyAttribute.cs
- XmlTextEncoder.cs
- GenericPrincipal.cs
- JsonObjectDataContract.cs
- BamlRecordWriter.cs
- _ScatterGatherBuffers.cs
- SmiRecordBuffer.cs
- PerformanceCounterCategory.cs
- SessionEndedEventArgs.cs
- Shared.cs
- LogStream.cs
- CroppedBitmap.cs
- Baml6ConstructorInfo.cs
- MessageBodyMemberAttribute.cs
- Transform3D.cs
- Model3DCollection.cs
- XmlNamespaceMapping.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- ImageAttributes.cs
- TagMapInfo.cs
- Directory.cs
- ChangeNode.cs
- UnsafePeerToPeerMethods.cs
- ZipIOExtraFieldPaddingElement.cs
- HttpClientCertificate.cs
- BlurEffect.cs
- AttachedPropertyBrowsableAttribute.cs
- _FtpDataStream.cs
- SafeFileMappingHandle.cs
- ListViewPagedDataSource.cs
- X509Certificate2.cs
- ChtmlTextWriter.cs
- MouseGestureConverter.cs
- Point3DCollection.cs
- BoolExpr.cs
- EventLogger.cs
- XmlCountingReader.cs
- XmlDocumentSchema.cs
- MenuItem.cs
- RegexCharClass.cs
- _IPv4Address.cs
- NodeFunctions.cs
- BezierSegment.cs
- XmlHierarchicalDataSourceView.cs
- Pair.cs
- CompilationUtil.cs
- WindowsTooltip.cs
- ProgressBar.cs
- ValueTypeFixupInfo.cs
- ParallelActivityDesigner.cs
- VolatileEnlistmentMultiplexing.cs
- AsymmetricSecurityProtocolFactory.cs
- WSHttpTransportSecurityElement.cs
- _SslState.cs
- Splitter.cs
- DataGridViewCellCollection.cs
- SqlErrorCollection.cs
- WebServiceResponse.cs
- AsyncOperationLifetimeManager.cs
- WebHttpBindingCollectionElement.cs
- BrowserCapabilitiesCompiler.cs
- SoapServerProtocol.cs
- Constant.cs
- AddInServer.cs