Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / TextDecoration.cs / 1 / TextDecoration.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: TextDecoration class // // History: // 10/14/2004: [....] 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
- WinEventHandler.cs
- WebPartDisplayModeCollection.cs
- TdsParserStaticMethods.cs
- QueuePropertyVariants.cs
- TextBoxView.cs
- ValueUtilsSmi.cs
- RoleGroupCollection.cs
- ScriptBehaviorDescriptor.cs
- Privilege.cs
- StreamGeometryContext.cs
- HttpCapabilitiesSectionHandler.cs
- VisualProxy.cs
- OleDbInfoMessageEvent.cs
- PolyBezierSegment.cs
- MemberJoinTreeNode.cs
- NameNode.cs
- HostedTransportConfigurationBase.cs
- _Rfc2616CacheValidators.cs
- TagPrefixAttribute.cs
- MouseOverProperty.cs
- TextSelectionProcessor.cs
- Line.cs
- WebPartDisplayModeCancelEventArgs.cs
- ConstrainedDataObject.cs
- CellNormalizer.cs
- DropDownList.cs
- ChangeNode.cs
- RotateTransform3D.cs
- WebAdminConfigurationHelper.cs
- TraceContext.cs
- CodeTypeConstructor.cs
- ResourceDisplayNameAttribute.cs
- RoleGroup.cs
- XmlEncodedRawTextWriter.cs
- TdsParameterSetter.cs
- SchemaContext.cs
- BindingCollection.cs
- RIPEMD160.cs
- FixedSOMContainer.cs
- PreservationFileWriter.cs
- ResizingMessageFilter.cs
- EpmSourceTree.cs
- XmlRawWriterWrapper.cs
- List.cs
- MaterialGroup.cs
- DataGridViewColumnCollection.cs
- Compilation.cs
- IMembershipProvider.cs
- SQLInt32Storage.cs
- AuthenticationModuleElementCollection.cs
- ResizeBehavior.cs
- SqlConnectionHelper.cs
- DefaultShape.cs
- ConnectionsZone.cs
- WebEvents.cs
- HyperLinkField.cs
- altserialization.cs
- initElementDictionary.cs
- DocumentScope.cs
- MouseGesture.cs
- ParameterBuilder.cs
- ObjectStateFormatter.cs
- DataGridCommandEventArgs.cs
- BitmapSizeOptions.cs
- Table.cs
- HasCopySemanticsAttribute.cs
- QilReference.cs
- ControllableStoryboardAction.cs
- SystemColorTracker.cs
- ExpressionDumper.cs
- EventRoute.cs
- ImageConverter.cs
- IOThreadTimer.cs
- SqlFileStream.cs
- XmlDataProvider.cs
- EventOpcode.cs
- MarginsConverter.cs
- PageFunction.cs
- PreservationFileReader.cs
- Accessible.cs
- ObjectReaderCompiler.cs
- Opcode.cs
- OdbcConnectionStringbuilder.cs
- CodeGenerator.cs
- PtsHost.cs
- ConfigurationSection.cs
- PropertyToken.cs
- MessageQueueKey.cs
- ImageCodecInfo.cs
- DbDataRecord.cs
- OwnerDrawPropertyBag.cs
- TransformCollection.cs
- FacetValueContainer.cs
- ProfileSection.cs
- MimeTypePropertyAttribute.cs
- HelpEvent.cs
- CodePropertyReferenceExpression.cs
- CodeObject.cs
- MenuItem.cs
- IPGlobalProperties.cs