Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / RotateTransform.cs / 1 / RotateTransform.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001 // // File: RotateTransform.cs //----------------------------------------------------------------------------- using MS.Internal; using MS.Internal.PresentationCore; using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// Create a rotation transformation in degrees. /// public sealed partial class RotateTransform : Transform { ////// /// public RotateTransform() { } ////// Create a rotation transformation in degrees. /// ///The angle of rotation in degrees. public RotateTransform(double angle) { Angle = angle; } ////// Create a rotation transformation in degrees. /// public RotateTransform( double angle, double centerX, double centerY ) : this(angle) { CenterX = centerX; CenterY = centerY; } ////// Return the current transformation value. /// public override Matrix Value { get { ReadPreamble(); Matrix m = new Matrix(); m.RotateAt(Angle, CenterX, CenterY); return m; } } ////// Returns true if transformation matches the identity transform. /// internal override bool IsIdentity { get { return Angle == 0 && CanFreeze; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001 // // File: RotateTransform.cs //----------------------------------------------------------------------------- using MS.Internal; using MS.Internal.PresentationCore; using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// Create a rotation transformation in degrees. /// public sealed partial class RotateTransform : Transform { ////// /// public RotateTransform() { } ////// Create a rotation transformation in degrees. /// ///The angle of rotation in degrees. public RotateTransform(double angle) { Angle = angle; } ////// Create a rotation transformation in degrees. /// public RotateTransform( double angle, double centerX, double centerY ) : this(angle) { CenterX = centerX; CenterY = centerY; } ////// Return the current transformation value. /// public override Matrix Value { get { ReadPreamble(); Matrix m = new Matrix(); m.RotateAt(Angle, CenterX, CenterY); return m; } } ////// Returns true if transformation matches the identity transform. /// internal override bool IsIdentity { get { return Angle == 0 && CanFreeze; } } } } // 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
- MarginsConverter.cs
- XXXInfos.cs
- ExpressionBuilder.cs
- DoubleUtil.cs
- InstancePersistenceCommandException.cs
- _ListenerRequestStream.cs
- ServiceDescriptionSerializer.cs
- UInt16Storage.cs
- SizeKeyFrameCollection.cs
- WindowsListViewScroll.cs
- TargetControlTypeAttribute.cs
- StyleXamlParser.cs
- LogicalTreeHelper.cs
- XmlStringTable.cs
- InternalBufferOverflowException.cs
- ListViewDeleteEventArgs.cs
- IntSecurity.cs
- CodeRegionDirective.cs
- IOException.cs
- ButtonBase.cs
- Mappings.cs
- MemberAccessException.cs
- UIHelper.cs
- DesignerHost.cs
- DbTransaction.cs
- FileSystemWatcher.cs
- XmlSerializerVersionAttribute.cs
- ProtectedProviderSettings.cs
- Rfc2898DeriveBytes.cs
- StaticExtensionConverter.cs
- ReachDocumentReferenceCollectionSerializer.cs
- ContainsRowNumberChecker.cs
- SpeechDetectedEventArgs.cs
- ApplicationProxyInternal.cs
- ScrollItemPattern.cs
- SpotLight.cs
- DesignerTextViewAdapter.cs
- Geometry.cs
- VisualProxy.cs
- Axis.cs
- InputManager.cs
- SrgsText.cs
- KeyNotFoundException.cs
- BasicHttpBindingElement.cs
- HierarchicalDataSourceControl.cs
- IsolatedStorageFile.cs
- Identifier.cs
- ObjectIDGenerator.cs
- InternalConfigEventArgs.cs
- XPathConvert.cs
- AuthenticationManager.cs
- FontDialog.cs
- KeyValuePair.cs
- BindUriHelper.cs
- SpeakCompletedEventArgs.cs
- AutoGeneratedField.cs
- NativeMethods.cs
- Renderer.cs
- MappingItemCollection.cs
- ComponentChangingEvent.cs
- StringResourceManager.cs
- TextHidden.cs
- SecurityChannelFaultConverter.cs
- TemplateComponentConnector.cs
- IgnorePropertiesAttribute.cs
- ActionItem.cs
- Int16KeyFrameCollection.cs
- InputScopeNameConverter.cs
- TypeInfo.cs
- WaitHandle.cs
- XmlDomTextWriter.cs
- DesignerActionItem.cs
- SqlParameterCollection.cs
- EntityDataSourceColumn.cs
- GiveFeedbackEvent.cs
- Context.cs
- DataGridViewCheckBoxCell.cs
- SafeHandles.cs
- ViewSimplifier.cs
- _SpnDictionary.cs
- CommandHelper.cs
- OracleMonthSpan.cs
- NavigationExpr.cs
- TableRowGroup.cs
- StatementContext.cs
- DBDataPermission.cs
- MasterPageBuildProvider.cs
- SqlConnectionPoolProviderInfo.cs
- EditorZoneDesigner.cs
- IntellisenseTextBox.cs
- ConfigXmlDocument.cs
- GrammarBuilderWildcard.cs
- Automation.cs
- OrderingInfo.cs
- CustomErrorsSectionWrapper.cs
- DCSafeHandle.cs
- ScrollViewerAutomationPeer.cs
- ServiceObjectContainer.cs
- XmlUnspecifiedAttribute.cs
- _NetRes.cs