Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; // Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET namespace MS.Internal.Ink.InkSerializedFormat { internal class StrokeDescriptor { private System.Collections.Generic.List_strokeDescriptor = new System.Collections.Generic.List (); private uint _Size = 0; public uint Size { get { return _Size; } set { _Size = value; } } public System.Collections.Generic.List Template { get { return _strokeDescriptor; } } public StrokeDescriptor() { } public bool IsEqual(StrokeDescriptor strd) { // If the no of templates in them are different return false if( _strokeDescriptor.Count != strd.Template.Count ) return false; // Compare each tag in the template. If any one of them is different, return false; for( int i = 0; i < _strokeDescriptor.Count; i++ ) if( _strokeDescriptor[i] != strd.Template[i] ) return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TrackingMemoryStream.cs
- MouseOverProperty.cs
- DropSource.cs
- HttpModule.cs
- DbModificationClause.cs
- LineUtil.cs
- MapPathBasedVirtualPathProvider.cs
- FormViewUpdatedEventArgs.cs
- TextLine.cs
- UmAlQuraCalendar.cs
- SystemPens.cs
- AssemblyCollection.cs
- SignatureToken.cs
- MaskDesignerDialog.cs
- HtmlValidationSummaryAdapter.cs
- BaseCodeDomTreeGenerator.cs
- GradientSpreadMethodValidation.cs
- SiteMapNodeItemEventArgs.cs
- SqlWriter.cs
- MethodBody.cs
- ComponentResourceManager.cs
- ChildrenQuery.cs
- CompilerCollection.cs
- OlePropertyStructs.cs
- AllMembershipCondition.cs
- SelectedCellsChangedEventArgs.cs
- ColorAnimation.cs
- TextOnlyOutput.cs
- InputReport.cs
- SessionStateContainer.cs
- BulletedListDesigner.cs
- MarshalDirectiveException.cs
- Propagator.cs
- SqlParameter.cs
- DataGridViewCellValueEventArgs.cs
- VirtualPath.cs
- FastEncoder.cs
- StringInfo.cs
- EventKeyword.cs
- MD5.cs
- OdbcReferenceCollection.cs
- CompModSwitches.cs
- RowsCopiedEventArgs.cs
- WorkflowOwnershipException.cs
- PointAnimationUsingKeyFrames.cs
- VisualStyleElement.cs
- nulltextnavigator.cs
- ProfileGroupSettings.cs
- ExpressionLink.cs
- LoginView.cs
- StylusCaptureWithinProperty.cs
- HandleCollector.cs
- ImpersonateTokenRef.cs
- XMLSchema.cs
- Rijndael.cs
- WindowsFont.cs
- ListItemConverter.cs
- CompilerScope.cs
- PriorityRange.cs
- WindowsButton.cs
- LayoutTable.cs
- CodeGenerator.cs
- EncoderFallback.cs
- CornerRadiusConverter.cs
- ObjectDataSourceView.cs
- FileVersion.cs
- dataSvcMapFileLoader.cs
- ButtonPopupAdapter.cs
- HttpServerChannel.cs
- LocalValueEnumerator.cs
- ClientScriptManagerWrapper.cs
- IPEndPoint.cs
- PerspectiveCamera.cs
- _LocalDataStoreMgr.cs
- XslAst.cs
- TextParagraphCache.cs
- MetadataExporter.cs
- SafeViewOfFileHandle.cs
- ICollection.cs
- GroupedContextMenuStrip.cs
- ConnectionConsumerAttribute.cs
- Delegate.cs
- Command.cs
- MetadataItemEmitter.cs
- ReflectPropertyDescriptor.cs
- DrawingCollection.cs
- wgx_sdk_version.cs
- ContextMenu.cs
- TextReader.cs
- ToolStripLocationCancelEventArgs.cs
- DoubleAnimation.cs
- SqlMultiplexer.cs
- ProfileSettings.cs
- NotifyParentPropertyAttribute.cs
- Matrix.cs
- FormViewUpdatedEventArgs.cs
- FixedSOMTextRun.cs
- Geometry3D.cs
- PropertyGrid.cs
- SystemDiagnosticsSection.cs